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
558b20d7
Commit
558b20d7
authored
Mar 03, 2014
by
Tim Walker
Committed by
Vittorio Giovara
Mar 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskaenc: enable Annex B to MP4 conversion for HEVC tracks.
parent
a823d094
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
matroskaenc.c
libavformat/matroskaenc.c
+4
-0
No files found.
libavformat/matroskaenc.c
View file @
558b20d7
...
...
@@ -1167,6 +1167,10 @@ static void mkv_write_block(AVFormatContext *s, AVIOContext *pb,
if
(
codec
->
codec_id
==
AV_CODEC_ID_H264
&&
codec
->
extradata_size
>
0
&&
(
AV_RB24
(
codec
->
extradata
)
==
1
||
AV_RB32
(
codec
->
extradata
)
==
1
))
ff_avc_parse_nal_units_buf
(
pkt
->
data
,
&
data
,
&
size
);
else
if
(
codec
->
codec_id
==
AV_CODEC_ID_HEVC
&&
codec
->
extradata_size
>
6
&&
(
AV_RB24
(
codec
->
extradata
)
==
1
||
AV_RB32
(
codec
->
extradata
)
==
1
))
/* extradata is Annex B, assume the bitstream is too and convert it */
ff_hevc_annexb2mp4_buf
(
pkt
->
data
,
&
data
,
&
size
,
0
,
NULL
);
else
if
(
codec
->
codec_id
==
AV_CODEC_ID_WAVPACK
)
{
int
ret
=
mkv_strip_wavpack
(
pkt
->
data
,
&
data
,
&
size
);
if
(
ret
<
0
)
{
...
...
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