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
2df271c7
Unverified
Commit
2df271c7
authored
Feb 18, 2023
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/wavarc: Check if extradata has been fully read
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
8ead0ae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wavarc.c
libavformat/wavarc.c
+4
-1
No files found.
libavformat/wavarc.c
View file @
2df271c7
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "demux.h"
#include "internal.h"
#include "internal.h"
...
@@ -84,7 +85,9 @@ static int wavarc_read_header(AVFormatContext *s)
...
@@ -84,7 +85,9 @@ static int wavarc_read_header(AVFormatContext *s)
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
memcpy
(
par
->
extradata
,
data
,
sizeof
(
data
));
memcpy
(
par
->
extradata
,
data
,
sizeof
(
data
));
avio_read
(
pb
,
par
->
extradata
+
sizeof
(
data
),
fmt_len
);
ret
=
ffio_read_size
(
pb
,
par
->
extradata
+
sizeof
(
data
),
fmt_len
);
if
(
ret
<
0
)
return
ret
;
par
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
par
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
par
->
codec_id
=
AV_CODEC_ID_WAVARC
;
par
->
codec_id
=
AV_CODEC_ID_WAVARC
;
...
...
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