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
43dc0bfd
Commit
43dc0bfd
authored
Nov 30, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 2545 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
40a12840
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
8 deletions
+3
-8
h263.c
libavcodec/h263.c
+2
-2
mpegvideo.c
libavcodec/mpegvideo.c
+1
-2
mpegvideo.h
libavcodec/mpegvideo.h
+0
-1
rv10.c
libavcodec/rv10.c
+0
-3
No files found.
libavcodec/h263.c
View file @
43dc0bfd
...
...
@@ -3938,7 +3938,7 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
}
}
else
if
(
s
->
mb_intra
)
{
/* DC coef */
if
(
s
->
h263_rv
10
){
if
(
s
->
codec_id
==
CODEC_ID_RV
10
){
if
(
s
->
rv10_version
==
3
&&
s
->
pict_type
==
I_TYPE
)
{
int
component
,
diff
;
component
=
(
n
<=
3
?
0
:
n
-
4
+
1
);
...
...
@@ -3999,7 +3999,7 @@ retry:
run
=
get_bits
(
&
s
->
gb
,
6
);
level
=
(
int8_t
)
get_bits
(
&
s
->
gb
,
8
);
if
(
level
==
-
128
){
if
(
s
->
h263_rv
10
)
{
if
(
s
->
codec_id
==
CODEC_ID_RV
10
)
{
/* XXX: should patch encoder too */
level
=
get_sbits
(
&
s
->
gb
,
12
);
}
else
{
...
...
libavcodec/mpegvideo.c
View file @
43dc0bfd
...
...
@@ -796,7 +796,6 @@ int MPV_encode_init(AVCodecContext *avctx)
break
;
case
CODEC_ID_RV10
:
s
->
out_format
=
FMT_H263
;
s
->
h263_rv10
=
1
;
avctx
->
delay
=
0
;
s
->
low_delay
=
1
;
break
;
...
...
@@ -3782,7 +3781,7 @@ static void encode_picture(MpegEncContext *s, int picture_number)
msmpeg4_encode_picture_header
(
s
,
picture_number
);
else
if
(
s
->
h263_pred
)
mpeg4_encode_picture_header
(
s
,
picture_number
);
else
if
(
s
->
h263_rv
10
)
else
if
(
s
->
codec_id
==
CODEC_ID_RV
10
)
rv10_encode_picture_header
(
s
,
picture_number
);
else
if
(
s
->
codec_id
==
CODEC_ID_FLV1
)
ff_flv_encode_picture_header
(
s
,
picture_number
);
...
...
libavcodec/mpegvideo.h
View file @
43dc0bfd
...
...
@@ -266,7 +266,6 @@ typedef struct MpegEncContext {
/* the following codec id fields are deprecated in favor of codec_id */
int
h263_plus
;
///< h263 plus headers
int
h263_rv10
;
///< use RV10 variation for H263
int
h263_msmpeg4
;
///< generate MSMPEG4 compatible stream (deprecated, use msmpeg4_version instead)
int
h263_intel
;
///< use I263 intel h263 header
int
h263_flv
;
///< use flv h263 header
...
...
libavcodec/rv10.c
View file @
43dc0bfd
...
...
@@ -402,17 +402,14 @@ static int rv10_decode_init(AVCodecContext *avctx)
case
0x10000000
:
s
->
rv10_version
=
0
;
s
->
h263_long_vectors
=
0
;
s
->
h263_rv10
=
1
;
break
;
case
0x10003000
:
s
->
rv10_version
=
3
;
s
->
h263_long_vectors
=
1
;
s
->
h263_rv10
=
1
;
break
;
case
0x10003001
:
s
->
rv10_version
=
3
;
s
->
h263_long_vectors
=
0
;
s
->
h263_rv10
=
1
;
break
;
case
0x20001000
:
case
0x20100001
:
//ok
...
...
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