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
b2f181c2
Commit
b2f181c2
authored
Jul 08, 2008
by
Peter Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Electronic Arts CMV demuxer
Originally committed as revision 14111 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
495900f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
electronicarts.c
libavformat/electronicarts.c
+15
-0
No files found.
libavformat/electronicarts.c
View file @
b2f181c2
/* Electronic Arts Multimedia File Demuxer
* Copyright (c) 2004 The ffmpeg Project
* Copyright (c) 2006-2008 Peter Ross
*
* This file is part of FFmpeg.
*
...
...
@@ -45,6 +46,7 @@
#define MV0K_TAG MKTAG('M', 'V', '0', 'K')
#define MV0F_TAG MKTAG('M', 'V', '0', 'F')
#define MVIh_TAG MKTAG('M', 'V', 'I', 'h')
/* CMV header */
#define MVIf_TAG MKTAG('M', 'V', 'I', 'f')
/* CMV i-frame */
typedef
struct
EaDemuxContext
{
int
big_endian
;
...
...
@@ -299,6 +301,11 @@ static int process_ea_header(AVFormatContext *s) {
err
=
process_audio_header_sead
(
s
);
break
;
case
MVIh_TAG
:
ea
->
video_codec
=
CODEC_ID_CMV
;
ea
->
time_base
=
(
AVRational
){
0
,
0
};
break
;
case
MVhd_TAG
:
err
=
process_video_header_vp6
(
s
);
break
;
...
...
@@ -441,9 +448,17 @@ static int ea_read_packet(AVFormatContext *s,
packet_read
=
1
;
break
;
case
MVIh_TAG
:
key
=
PKT_FLAG_KEY
;
case
MVIf_TAG
:
url_fseek
(
pb
,
-
8
,
SEEK_CUR
);
// include chunk preamble
chunk_size
+=
8
;
goto
get_video_packet
;
case
MV0K_TAG
:
key
=
PKT_FLAG_KEY
;
case
MV0F_TAG
:
get_video_packet:
ret
=
av_get_packet
(
pb
,
pkt
,
chunk_size
);
if
(
ret
!=
chunk_size
)
ret
=
AVERROR_IO
;
...
...
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