summaryrefslogtreecommitdiff
path: root/libavformat/r3d.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-08-25 19:59:38 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-08-25 19:59:38 +0000
commit6aa333471c95587dffd83580b4e58c52245dbc79 (patch)
tree833f6773a9b64e8f3892ce5f70b60698e80a407d /libavformat/r3d.c
parentb01c7b756e98eb6767d0947a4a42e43f1b51bcdc (diff)
return AVERROR(ENOMEM) if stream could not be allocated
Originally committed as revision 19702 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/r3d.c')
-rw-r--r--libavformat/r3d.c2
1 files changed, 1 insertions, 1 deletions
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;