From 6d2892c9f597f1a82e7884648393fd92293ce107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 23 Nov 2012 22:47:51 +0100 Subject: [PATCH] lavf/assdec: return appropriate error code instead of -1. --- libavformat/assdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;