[FFmpeg-devel] [PATCH] avcodec: set correct return value in ff_mpeg_ref_picture

Michael Niedermayer michael at niedermayer.cc
Tue Nov 28 21:36:02 EET 2017


On Mon, Nov 27, 2017 at 08:41:10PM +0800, Pan Bian wrote:
> 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 at 163.com>
> ---
>  libavcodec/mpegpicture.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

will apply

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171128/98e25ced/attachment.sig>


More information about the ffmpeg-devel mailing list