aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-11-23 22:47:51 +0100
committerClément Bœsch <ubitux@gmail.com>2012-12-02 00:06:03 +0100
commit6d2892c9f597f1a82e7884648393fd92293ce107 (patch)
tree84c850f9379e5e5ee3707c2684cfd731f25c2ef2
parent069c897549671e473c7caa1a61bf38fbabeedf01 (diff)
downloadffmpeg-6d2892c9f597f1a82e7884648393fd92293ce107.tar.gz
lavf/assdec: return appropriate error code instead of -1.
-rw-r--r--libavformat/assdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/assdec.c b/libavformat/assdec.c
index 0d960f1ee8..6c4614ec47 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;