Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
cb146faf
Commit
cb146faf
authored
Oct 31, 2002
by
Zdenek Kabelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* always set extradata_size
Originally committed as revision 1129 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e40fed0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
wav.c
libav/wav.c
+5
-6
No files found.
libav/wav.c
View file @
cb146faf
...
...
@@ -106,7 +106,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
void
get_wav_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
codec
,
int
has_extra_data
)
{
int
id
,
bps
,
size
;
int
id
,
bps
;
id
=
get_le16
(
pb
);
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
...
...
@@ -119,11 +119,10 @@ void get_wav_header(ByteIOContext *pb, AVCodecContext *codec,
bps
=
get_le16
(
pb
);
/* bits per sample */
codec
->
codec_id
=
wav_codec_get_id
(
id
,
bps
);
if
(
has_extra_data
)
{
size
=
get_le16
(
pb
);
if
(
size
>
0
)
{
codec
->
extradata
=
av_mallocz
(
size
);
get_buffer
(
pb
,
codec
->
extradata
,
size
);
codec
->
extradata_size
=
size
;
codec
->
extradata_size
=
get_le16
(
pb
);
if
(
codec
->
extradata_size
>
0
)
{
codec
->
extradata
=
av_mallocz
(
codec
->
extradata_size
);
get_buffer
(
pb
,
codec
->
extradata
,
codec
->
extradata_size
);
}
}
}
...
...
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