[FFmpeg-cvslog] lavf/assdec: return appropriate error code instead of -1.

Clément Bœsch git at videolan.org
Sun Dec 2 00:19:22 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Nov 23 22:47:51 2012 +0100| [6d2892c9f597f1a82e7884648393fd92293ce107] | committer: Clément Bœsch

lavf/assdec: return appropriate error code instead of -1.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d2892c9f597f1a82e7884648393fd92293ce107
---

 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;



More information about the ffmpeg-cvslog mailing list