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
9e8cd0db
Commit
9e8cd0db
authored
Sep 08, 2003
by
Mike Melanson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hacks to support Xan AVI files
Originally committed as revision 2220 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
048446bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
avidec.c
libavformat/avidec.c
+7
-0
avienc.c
libavformat/avienc.c
+1
-0
No files found.
libavformat/avidec.c
View file @
9e8cd0db
...
...
@@ -88,6 +88,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
unsigned
int
size
,
nb_frames
;
int
i
,
n
;
AVStream
*
st
;
int
xan_video
=
0
;
/* hack to support Xan A/V */
if
(
get_riff
(
avi
,
pb
)
<
0
)
return
-
1
;
...
...
@@ -274,12 +275,18 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
codec
.
codec_type
=
CODEC_TYPE_VIDEO
;
st
->
codec
.
codec_tag
=
tag1
;
st
->
codec
.
codec_id
=
codec_get_id
(
codec_bmp_tags
,
tag1
);
if
(
st
->
codec
.
codec_id
==
CODEC_ID_XAN_WC4
)
xan_video
=
1
;
// url_fskip(pb, size - 5 * 4);
break
;
case
CODEC_TYPE_AUDIO
:
get_wav_header
(
pb
,
&
st
->
codec
,
size
);
if
(
size
%
2
)
/* 2-aligned (fix for Stargate SG-1 - 3x18 - Shades of Grey.avi) */
url_fskip
(
pb
,
1
);
/* special case time: To support Xan DPCM, hardcode
* the format if Xxan is the video codec */
if
(
xan_video
)
st
->
codec
.
codec_id
=
CODEC_ID_XAN_DPCM
;
break
;
default:
url_fskip
(
pb
,
size
);
...
...
libavformat/avienc.c
View file @
9e8cd0db
...
...
@@ -143,6 +143,7 @@ const CodecTag codec_bmp_tags[] = {
{
CODEC_ID_ASV2
,
MKTAG
(
'A'
,
'S'
,
'V'
,
'2'
)
},
{
CODEC_ID_VCR1
,
MKTAG
(
'V'
,
'C'
,
'R'
,
'1'
)
},
{
CODEC_ID_FFV1
,
MKTAG
(
'F'
,
'F'
,
'V'
,
'1'
)
},
{
CODEC_ID_XAN_WC4
,
MKTAG
(
'X'
,
'x'
,
'a'
,
'n'
)
},
{
0
,
0
},
};
...
...
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