summaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-21 10:48:22 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-21 10:48:22 +0000
commit3efe8848fcbfc4f258848ea793a3e3f60ad190a3 (patch)
treea88c6f41933f319d7d34f833e2c9caa968cdf9ee /libavformat/mov.c
parent2922cbdb14a69ca8f763182a9d70d13ddcdcd1ec (diff)
downloadffmpeg-streaming-3efe8848fcbfc4f258848ea793a3e3f60ad190a3.zip
ffmpeg-streaming-3efe8848fcbfc4f258848ea793a3e3f60ad190a3.tar.gz
return ENOMEM
Originally committed as revision 12530 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 70b059b..0f58131 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1202,7 +1202,7 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
int ret;
st = av_new_stream(c->fc, c->fc->nb_streams);
- if (!st) return -2;
+ if (!st) return AVERROR(ENOMEM);
sc = av_mallocz(sizeof(MOVStreamContext));
if (!sc) return AVERROR(ENOMEM);
OpenPOWER on IntegriCloud