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
3f05305d
Commit
3f05305d
authored
Jan 06, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RV30/RV40 demuxing (untested)
Originally committed as revision 3809 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f6d51123
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
avcodec.h
libavcodec/avcodec.h
+5
-0
rm.c
libavformat/rm.c
+10
-5
No files found.
libavcodec/avcodec.h
View file @
3f05305d
...
...
@@ -100,6 +100,9 @@ enum CodecID {
CODEC_ID_PGMYUV
,
CODEC_ID_PAM
,
CODEC_ID_FFVHUFF
,
CODEC_ID_RV30
,
CODEC_ID_RV40
,
/* various pcm "codecs" */
CODEC_ID_PCM_S16LE
=
0x10000
,
...
...
@@ -1884,6 +1887,8 @@ extern AVCodec h263i_decoder;
extern
AVCodec
flv_decoder
;
extern
AVCodec
rv10_decoder
;
extern
AVCodec
rv20_decoder
;
extern
AVCodec
rv30_decoder
;
extern
AVCodec
rv40_decoder
;
extern
AVCodec
svq1_decoder
;
extern
AVCodec
svq3_decoder
;
extern
AVCodec
dvvideo_decoder
;
...
...
libavformat/rm.c
View file @
3f05305d
...
...
@@ -652,7 +652,9 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
codec
.
codec_tag
=
get_le32
(
pb
);
// av_log(NULL, AV_LOG_DEBUG, "%X %X\n", st->codec.codec_tag, MKTAG('R', 'V', '2', '0'));
if
(
st
->
codec
.
codec_tag
!=
MKTAG
(
'R'
,
'V'
,
'1'
,
'0'
)
&&
st
->
codec
.
codec_tag
!=
MKTAG
(
'R'
,
'V'
,
'2'
,
'0'
))
&&
st
->
codec
.
codec_tag
!=
MKTAG
(
'R'
,
'V'
,
'2'
,
'0'
)
&&
st
->
codec
.
codec_tag
!=
MKTAG
(
'R'
,
'V'
,
'3'
,
'0'
)
&&
st
->
codec
.
codec_tag
!=
MKTAG
(
'R'
,
'V'
,
'4'
,
'0'
))
goto
fail1
;
st
->
codec
.
width
=
get_be16
(
pb
);
st
->
codec
.
height
=
get_be16
(
pb
);
...
...
@@ -676,10 +678,13 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
h263_hack_version
=
bswap_32
(((
uint32_t
*
)
st
->
codec
.
extradata
)[
1
]);
#endif
st
->
codec
.
sub_id
=
h263_hack_version
;
if
((
h263_hack_version
>>
28
)
==
1
)
st
->
codec
.
codec_id
=
CODEC_ID_RV10
;
else
st
->
codec
.
codec_id
=
CODEC_ID_RV20
;
switch
((
h263_hack_version
>>
28
)){
case
1
:
st
->
codec
.
codec_id
=
CODEC_ID_RV10
;
break
;
case
2
:
st
->
codec
.
codec_id
=
CODEC_ID_RV20
;
break
;
case
3
:
st
->
codec
.
codec_id
=
CODEC_ID_RV30
;
break
;
case
4
:
st
->
codec
.
codec_id
=
CODEC_ID_RV40
;
break
;
default:
goto
fail1
;
}
}
skip:
/* skip codec info */
...
...
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