[FFmpeg-devel] [PATCH 3/3] lavf/assdec: return appropriate error code instead of -1.
Clément Bœsch
ubitux at gmail.com
Fri Nov 23 22:49:12 CET 2012
---
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;
--
1.8.0
More information about the ffmpeg-devel
mailing list