mirror of https://github.com/FFmpeg/FFmpeg.git
In function ff_mpeg_ref_picture(), it returns 0 on the error path that the return value of av_buffer_ref() is NULL. 0 indicates success, which seems to deviate from the fact. Set ret to AVERROR(ENOMEM) to propagate the error status to the callers. Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>pull/272/head
parent
96e3407608
commit
89f9332fdf
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue