Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
a2018b51
Commit
a2018b51
authored
Apr 06, 2011
by
Anton Khirnov
Browse files
lxfdec: use AVERROR(ENOMEM) instead of deprecated AVERROR_NOMEM.
parent
f5b386af
Changes
1
Hide whitespace changes
Inline
Side-by-side
libavformat/lxfdec.c
View file @
a2018b51
...
...
@@ -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
(
E
NOMEM
)
;
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
(
E
NOMEM
)
;
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
st
->
codec
->
sample_rate
=
LXF_SAMPLERATE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment