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
037af63b
Commit
037af63b
authored
Aug 18, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix frame width and height for some targa_y216 samples.
Fixes ticket #2864.
parent
d73cbc22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
mov.c
libavformat/mov.c
+15
-0
No files found.
libavformat/mov.c
View file @
037af63b
...
...
@@ -1025,6 +1025,20 @@ 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_targa_y216
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
{
int
ret
=
mov_read_extradata
(
c
,
pb
,
atom
,
AV_CODEC_ID_TARGA_Y216
);
if
(
!
ret
&&
c
->
fc
->
nb_streams
>=
1
)
{
AVCodecContext
*
avctx
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
codec
;
if
(
avctx
->
extradata_size
>=
40
)
{
avctx
->
height
=
AV_RB16
(
&
avctx
->
extradata
[
36
]);
avctx
->
width
=
AV_RB16
(
&
avctx
->
extradata
[
38
]);
}
}
return
ret
;
}
static
int
mov_read_ares
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
{
AVCodecContext
*
codec
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
codec
;
...
...
@@ -2888,6 +2902,7 @@ static const MOVParseTableEntry mov_default_parse_table[] = {
{
MKTAG
(
'd'
,
'v'
,
'c'
,
'1'
),
mov_read_dvc1
},
{
MKTAG
(
's'
,
'b'
,
'g'
,
'p'
),
mov_read_sbgp
},
{
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