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
b26f0ee3
Commit
b26f0ee3
authored
Jan 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avidec: XMPG support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
83b12c16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
avidec.c
libavformat/avidec.c
+23
-0
riff.c
libavformat/riff.c
+1
-0
No files found.
libavformat/avidec.c
View file @
b26f0ee3
...
...
@@ -698,6 +698,29 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
}
break
;
case
MKTAG
(
's'
,
't'
,
'r'
,
'd'
):
if
(
stream_index
>=
(
unsigned
)
s
->
nb_streams
||
st
->
codec
->
extradata_size
)
{
avio_skip
(
pb
,
size
);
}
else
{
uint64_t
cur_pos
=
avio_tell
(
pb
);
if
(
cur_pos
<
list_end
)
size
=
FFMIN
(
size
,
list_end
-
cur_pos
);
st
=
s
->
streams
[
stream_index
];
if
(
size
<
(
1
<<
30
)){
st
->
codec
->
extradata_size
=
size
;
st
->
codec
->
extradata
=
av_malloc
(
st
->
codec
->
extradata_size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
if
(
!
st
->
codec
->
extradata
)
{
st
->
codec
->
extradata_size
=
0
;
return
AVERROR
(
ENOMEM
);
}
avio_read
(
pb
,
st
->
codec
->
extradata
,
st
->
codec
->
extradata_size
);
}
if
(
st
->
codec
->
extradata_size
&
1
)
//FIXME check if the encoder really did this correctly
avio_r8
(
pb
);
}
break
;
case
MKTAG
(
'i'
,
'n'
,
'd'
,
'x'
):
i
=
avio_tell
(
pb
);
if
(
pb
->
seekable
&&
!
(
s
->
flags
&
AVFMT_FLAG_IGNIDX
)
&&
avi
->
use_odml
&&
...
...
libavformat/riff.c
View file @
b26f0ee3
...
...
@@ -135,6 +135,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
{
CODEC_ID_MPEG2VIDEO
,
MKTAG
(
'E'
,
'M'
,
'2'
,
'V'
)
},
{
CODEC_ID_MPEG2VIDEO
,
MKTAG
(
'M'
,
'7'
,
'0'
,
'1'
)
},
/* Matrox MPEG2 intra-only */
{
CODEC_ID_MPEG2VIDEO
,
MKTAG
(
'm'
,
'p'
,
'g'
,
'v'
)
},
{
CODEC_ID_MPEG1VIDEO
,
MKTAG
(
'X'
,
'M'
,
'P'
,
'G'
)
},
/* Xing MPEG intra only */
{
CODEC_ID_MJPEG
,
MKTAG
(
'M'
,
'J'
,
'P'
,
'G'
)
},
{
CODEC_ID_MJPEG
,
MKTAG
(
'L'
,
'J'
,
'P'
,
'G'
)
},
{
CODEC_ID_MJPEG
,
MKTAG
(
'd'
,
'm'
,
'b'
,
'1'
)
},
...
...
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