[FFmpeg-devel] [PATCH 3/3] lavf/assdec: return appropriate error code instead of -1.
Stefano Sabatini
stefasab at gmail.com
Sat Nov 24 12:37:11 CET 2012
On date Friday 2012-11-23 22:49:12 +0100, Clément Bœsch encoded:
> ---
> libavformat/assdec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/assdec.c b/libavformat/assdec.c
> index 0d960f1..6c4614e 100644
> --- a/libavformat/assdec.c
> +++ b/libavformat/assdec.c
> @@ -88,7 +88,7 @@ static int ass_read_header(AVFormatContext *s)
>
> st = avformat_new_stream(s, NULL);
> if (!st)
> - return -1;
> + return AVERROR(ENOMEM);
> avpriv_set_pts_info(st, 64, 1, 100);
> st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
> st->codec->codec_id= AV_CODEC_ID_SSA;
Looks fine of course.
--
FFmpeg = Free & Fascinating Maxi Puristic Elaborated Gymnast
More information about the ffmpeg-devel
mailing list