From 769e10f0684c63aefb6fe36788f3e543312e185d Mon Sep 17 00:00:00 2001 From: Panagiotis Issaris Date: Thu, 19 Jul 2007 15:21:30 +0000 Subject: Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM). Originally committed as revision 9759 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/flvdec.c') diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 676bb27169..e60257f8e5 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -237,14 +237,14 @@ static int flv_read_header(AVFormatContext *s, if(flags & FLV_HEADER_FLAG_HASVIDEO){ st = av_new_stream(s, 0); if (!st) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); st->codec->codec_type = CODEC_TYPE_VIDEO; av_set_pts_info(st, 24, 1, 1000); /* 24 bit pts in ms */ } if(flags & FLV_HEADER_FLAG_HASAUDIO){ st = av_new_stream(s, 1); if (!st) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); st->codec->codec_type = CODEC_TYPE_AUDIO; av_set_pts_info(st, 24, 1, 1000); /* 24 bit pts in ms */ } -- cgit v1.2.3