projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5b386a
)
lxfdec: use AVERROR(ENOMEM) instead of deprecated AVERROR_NOMEM.
author
Anton Khirnov
<anton@khirnov.net>
Wed, 6 Apr 2011 06:18:16 +0000
(08:18 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 6 Apr 2011 12:10:08 +0000
(14:10 +0200)
libavformat/lxfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/lxfdec.c
b/libavformat/lxfdec.c
index
f60d758
..
0f7e426
100644
(file)
--- 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;