Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
207c1d2a
Commit
207c1d2a
authored
Jun 11, 2015
by
François Cartegnie
🤞
Browse files
demux: mp4: fix smooth extradata size
parent
895d419f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/mp4/mp4.c
View file @
207c1d2a
...
...
@@ -3438,10 +3438,10 @@ static int build_raw_avcC( uint8_t **p_extra, const uint8_t *CodecPrivateData,
static
inline
int
MP4_SetCodecExtraData
(
es_format_t
*
fmt
,
MP4_Box_data_stra_t
*
p_data
)
{
fmt
->
i_extra
=
p_data
->
cpd_len
;
fmt
->
p_extra
=
malloc
(
p_data
->
cpd_len
);
if
(
unlikely
(
!
fmt
->
p_extra
)
)
return
VLC_ENOMEM
;
fmt
->
i_extra
=
p_data
->
cpd_len
;
memcpy
(
fmt
->
p_extra
,
p_data
->
CodecPrivateData
,
p_data
->
cpd_len
);
return
VLC_SUCCESS
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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