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
53f903b7
Commit
53f903b7
authored
Oct 12, 2013
by
Yusuke Nakamura
Committed by
Michael Niedermayer
Oct 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/mov: Support HEVC demuxing.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
cf49d015
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
isom.c
libavformat/isom.c
+3
-0
mov.c
libavformat/mov.c
+7
-3
No files found.
libavformat/isom.c
View file @
53f903b7
...
...
@@ -151,6 +151,9 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'W'
,
'R'
,
'A'
,
'W'
)
},
{
AV_CODEC_ID_HEVC
,
MKTAG
(
'h'
,
'v'
,
'c'
,
'1'
)
},
/* HEVC/H.265 which indicates parameter sets shall not be in ES */
{
AV_CODEC_ID_HEVC
,
MKTAG
(
'h'
,
'e'
,
'v'
,
'1'
)
},
/* HEVC/H.265 which indicates parameter sets may be in ES */
{
AV_CODEC_ID_H264
,
MKTAG
(
'a'
,
'v'
,
'c'
,
'1'
)
},
/* AVC-1/H.264 */
{
AV_CODEC_ID_H264
,
MKTAG
(
'a'
,
'i'
,
'5'
,
'p'
)
},
/* AVC-Intra 50M 720p24/30/60 */
{
AV_CODEC_ID_H264
,
MKTAG
(
'a'
,
'i'
,
'5'
,
'q'
)
},
/* AVC-Intra 50M 720p25/50 */
...
...
libavformat/mov.c
View file @
53f903b7
...
...
@@ -1590,8 +1590,11 @@ static int mov_skip_multiple_stsd(MOVContext *c, AVIOContext *pb,
avio_skip
(
pb
,
size
);
return
1
;
}
if
(
codec_tag
==
AV_RL32
(
"avc1"
))
av_log
(
c
->
fc
,
AV_LOG_WARNING
,
"Concatenated H.264 might not play corrently.
\n
"
);
if
(
codec_tag
==
AV_RL32
(
"avc1"
)
||
codec_tag
==
AV_RL32
(
"hvc1"
)
||
codec_tag
==
AV_RL32
(
"hev1"
)
)
av_log
(
c
->
fc
,
AV_LOG_WARNING
,
"Concatenated H.264 or H.265 might not play corrently.
\n
"
);
return
0
;
}
...
...
@@ -1656,7 +1659,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
if
(
ret
<
0
)
return
ret
;
}
/* this will read extra atoms at the end (wave, alac, damr, avcC, SMI ...) */
/* this will read extra atoms at the end (wave, alac, damr, avcC,
hvcC,
SMI ...) */
a
.
size
=
size
-
(
avio_tell
(
pb
)
-
start_pos
);
if
(
a
.
size
>
8
)
{
if
((
ret
=
mov_read_default
(
c
,
pb
,
a
))
<
0
)
...
...
@@ -2962,6 +2965,7 @@ static const MOVParseTableEntry mov_default_parse_table[] = {
{
MKTAG
(
'c'
,
'h'
,
'a'
,
'n'
),
mov_read_chan
},
/* channel layout */
{
MKTAG
(
'd'
,
'v'
,
'c'
,
'1'
),
mov_read_dvc1
},
{
MKTAG
(
's'
,
'b'
,
'g'
,
'p'
),
mov_read_sbgp
},
{
MKTAG
(
'h'
,
'v'
,
'c'
,
'C'
),
mov_read_glbl
},
{
MKTAG
(
'u'
,
'u'
,
'i'
,
'd'
),
mov_read_uuid
},
{
MKTAG
(
'C'
,
'i'
,
'n'
,
0x8e
),
mov_read_targa_y216
},
{
0
,
NULL
}
...
...
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