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
17938602
Commit
17938602
authored
Feb 28, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l
Originally committed as revision 1615 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e51d6d27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
h263.c
libavcodec/h263.c
+8
-4
ffmpeg.regression.ref
tests/ffmpeg.regression.ref
+1
-1
No files found.
libavcodec/h263.c
View file @
17938602
...
...
@@ -1519,7 +1519,7 @@ static void h263_encode_block(MpegEncContext * s, DCTELEM * block, int n)
level
=
1
;
block
[
0
]
=
1
;
}
if
(
level
==
128
)
if
(
level
==
128
)
//FIXME check rv10
put_bits
(
&
s
->
pb
,
8
,
0xff
);
else
put_bits
(
&
s
->
pb
,
8
,
level
&
0xff
);
...
...
@@ -3548,7 +3548,8 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
}
}
else
if
(
s
->
mb_intra
)
{
/* DC coef */
if
(
s
->
h263_rv10
&&
s
->
rv10_version
==
3
&&
s
->
pict_type
==
I_TYPE
)
{
if
(
s
->
h263_rv10
){
if
(
s
->
rv10_version
==
3
&&
s
->
pict_type
==
I_TYPE
)
{
int
component
,
diff
;
component
=
(
n
<=
3
?
0
:
n
-
4
+
1
);
level
=
s
->
last_dc
[
component
];
...
...
@@ -3562,10 +3563,13 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
}
else
{
s
->
rv10_first_dc_coded
[
component
]
=
1
;
}
}
else
{
}
else
{
level
=
get_bits
(
&
s
->
gb
,
8
);
}
}
else
{
level
=
get_bits
(
&
s
->
gb
,
8
);
if
((
level
&
0x7F
)
==
0
){
fprintf
(
"illegal dc at %d %d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
fprintf
(
stderr
,
"illegal dc %d at %d %d
\n
"
,
level
,
s
->
mb_x
,
s
->
mb_y
);
return
-
1
;
}
if
(
level
==
255
)
...
...
tests/ffmpeg.regression.ref
View file @
17938602
...
...
@@ -22,7 +22,7 @@ da8e21c7b78b7a25558dc319524b91d8 *./data/out.yuv
5bcc6fd4b7dde27c74c633c761f0e5b1 *./data/a-mjpeg.avi
f23a9e50a559e174766ee808c48fea22 *./data/out.yuv
4b37703d3dc03873f99603165c0fe11e *./data/a-rv10.rm
545df74e0aa443499600faedd10a7065
*./data/out.yuv
255469fef47bee94cfb2e3385ebb736b
*./data/out.yuv
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
116d1290ba1b4eb98fdee52e423417b1 *./data/out.wav
048b9c3444c788bac6ce5cc3a8f4db00 *./data/a-ac3.rm
...
...
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