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
9a1ec1f2
Commit
9a1ec1f2
authored
Jul 09, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force correct extradata for AVID AVCI50 in mov.
Fixes ticket #2106. Reviewed-by: Kieran Kunhya
parent
3c5071db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
mov.c
libavformat/mov.c
+17
-1
No files found.
libavformat/mov.c
View file @
9a1ec1f2
...
...
@@ -1014,6 +1014,22 @@ static int mov_read_avid(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return
mov_read_extradata
(
c
,
pb
,
atom
,
AV_CODEC_ID_AVUI
);
}
static
int
mov_read_ares
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
{
AVCodecContext
*
codec
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
codec
;
if
(
codec
->
codec_tag
==
MKTAG
(
'A'
,
'V'
,
'i'
,
'n'
)
&&
codec
->
codec_id
==
AV_CODEC_ID_H264
&&
atom
.
size
>
11
)
{
avio_skip
(
pb
,
10
);
/* For AVID AVCI50, force width of 1440 to be able to select the correct SPS and PPS */
if
(
avio_rb16
(
pb
)
==
0xd4d
)
codec
->
width
=
1440
;
return
0
;
}
return
mov_read_avid
(
c
,
pb
,
atom
);
}
static
int
mov_read_svq3
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
{
return
mov_read_extradata
(
c
,
pb
,
atom
,
AV_CODEC_ID_SVQ3
);
...
...
@@ -2801,7 +2817,7 @@ static const MOVParseTableEntry mov_default_parse_table[] = {
{
MKTAG
(
'A'
,
'C'
,
'L'
,
'R'
),
mov_read_avid
},
{
MKTAG
(
'A'
,
'P'
,
'R'
,
'G'
),
mov_read_avid
},
{
MKTAG
(
'A'
,
'A'
,
'L'
,
'P'
),
mov_read_avid
},
{
MKTAG
(
'A'
,
'R'
,
'E'
,
'S'
),
mov_read_a
vid
},
{
MKTAG
(
'A'
,
'R'
,
'E'
,
'S'
),
mov_read_a
res
},
{
MKTAG
(
'a'
,
'v'
,
's'
,
's'
),
mov_read_avss
},
{
MKTAG
(
'c'
,
'h'
,
'p'
,
'l'
),
mov_read_chpl
},
{
MKTAG
(
'c'
,
'o'
,
'6'
,
'4'
),
mov_read_stco
},
...
...
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