From 3efe8848fcbfc4f258848ea793a3e3f60ad190a3 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Fri, 21 Mar 2008 10:48:22 +0000 Subject: [PATCH] return ENOMEM Originally committed as revision 12530 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4