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
e39400c3
Commit
e39400c3
authored
Mar 01, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
electronicarts: parse the framerate for cmv video.
parent
1bb3990b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
210 additions
and
197 deletions
+210
-197
electronicarts.c
libavformat/electronicarts.c
+15
-2
ea-cmv
tests/ref/fate/ea-cmv
+195
-195
No files found.
libavformat/electronicarts.c
View file @
e39400c3
...
...
@@ -283,6 +283,20 @@ static int process_video_header_vp6(AVFormatContext *s)
return
1
;
}
static
int
process_video_header_cmv
(
AVFormatContext
*
s
)
{
EaDemuxContext
*
ea
=
s
->
priv_data
;
int
fps
;
avio_skip
(
s
->
pb
,
10
);
fps
=
avio_rl16
(
s
->
pb
);
if
(
fps
)
ea
->
time_base
=
(
AVRational
){
1
,
fps
};
ea
->
video_codec
=
CODEC_ID_CMV
;
return
0
;
}
/*
* Process EA file header
* Returns 1 if the EA file is valid and successfully opened, 0 otherwise
...
...
@@ -330,8 +344,7 @@ static int process_ea_header(AVFormatContext *s) {
break
;
case
MVIh_TAG
:
ea
->
video_codec
=
CODEC_ID_CMV
;
ea
->
time_base
=
(
AVRational
){
0
,
0
};
err
=
process_video_header_cmv
(
s
);
break
;
case
kVGT_TAG
:
...
...
tests/ref/fate/ea-cmv
View file @
e39400c3
This diff is collapsed.
Click to expand it.
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