From 6aa333471c95587dffd83580b4e58c52245dbc79 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 25 Aug 2009 19:59:38 +0000 Subject: return AVERROR(ENOMEM) if stream could not be allocated Originally committed as revision 19702 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/r3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/r3d.c') diff --git a/libavformat/r3d.c b/libavformat/r3d.c index 4d2b469677..6909c73728 100644 --- a/libavformat/r3d.c +++ b/libavformat/r3d.c @@ -55,7 +55,7 @@ static int r3d_read_red1(AVFormatContext *s) int tmp, tmp2; if (!st) - return -1; + return AVERROR(ENOMEM); st->codec->codec_type = CODEC_TYPE_VIDEO; st->codec->codec_id = CODEC_ID_JPEG2000; -- cgit v1.2.3