Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-11-24 01:47:51 +0400
committerClément Bœsch <ubitux@gmail.com>2012-12-02 03:06:03 +0400
commit6d2892c9f597f1a82e7884648393fd92293ce107 (patch)
tree84c850f9379e5e5ee3707c2684cfd731f25c2ef2 /libavformat/assdec.c
parent069c897549671e473c7caa1a61bf38fbabeedf01 (diff)
lavf/assdec: return appropriate error code instead of -1.
Diffstat (limited to 'libavformat/assdec.c')
-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;