summaryrefslogtreecommitdiff
path: root/libavformat/yuv4mpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-29 15:40:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-29 15:40:16 +0000
commit8b9c4ad2374c6438a967a65d1ad779f47a3f30e2 (patch)
treeabc9990631f31bd2dd67c37abf1009ba3fe5157a /libavformat/yuv4mpeg.c
parent60583fb653dd2dc665cb4a8b9c755f23ea3cf901 (diff)
ENOMEM is better, yes ...
Originally committed as revision 13535 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/yuv4mpeg.c')
-rw-r--r--libavformat/yuv4mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c
index d05d8f6514..3ba582e55e 100644
--- a/libavformat/yuv4mpeg.c
+++ b/libavformat/yuv4mpeg.c
@@ -323,7 +323,7 @@ static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap)
st = av_new_stream(s, 0);
if(!st)
- return -1;
+ return AVERROR(ENOMEM);
st->codec->width = width;
st->codec->height = height;
av_reduce(&raten, &rated, raten, rated, (1UL<<31)-1);