Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
a2018b51
Commit
a2018b51
authored
Apr 06, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxfdec: use AVERROR(ENOMEM) instead of deprecated AVERROR_NOMEM.
parent
f5b386af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxfdec.c
libavformat/lxfdec.c
+2
-2
No files found.
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
(
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
;
...
...
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