diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-06 08:18:16 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-06 14:10:08 +0200 |
commit | a2018b516794f329ef487bca62b4dd7835cad764 (patch) | |
tree | eec17cb606398162cdfb21ed9294ac670e4f0bac /libavformat/lxfdec.c | |
parent | f5b386afab51a2141447b682793ce001abdaeb5c (diff) | |
download | ffmpeg-a2018b516794f329ef487bca62b4dd7835cad764.tar.gz |
lxfdec: use AVERROR(ENOMEM) instead of deprecated AVERROR_NOMEM.
Diffstat (limited to 'libavformat/lxfdec.c')
-rw-r--r-- | libavformat/lxfdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c index f60d758399..0f7e4268d2 100644 --- a/libavformat/lxfdec.c +++ b/libavformat/lxfdec.c @@ -218,7 +218,7 @@ static int lxf_read_header(AVFormatContext *s, AVFormatParameters *ap) return ret < 0 ? ret : AVERROR_EOF; if (!(st = av_new_stream(s, 0))) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); st->duration = AV_RL32(&header_data[32]); video_params = AV_RL32(&header_data[40]); @@ -244,7 +244,7 @@ static int lxf_read_header(AVFormatContext *s, AVFormatParameters *ap) if ((lxf->channels = (disk_params >> 2) & 0xF)) { if (!(st = av_new_stream(s, 1))) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); st->codec->codec_type = AVMEDIA_TYPE_AUDIO; st->codec->sample_rate = LXF_SAMPLERATE; |