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
6beeb962
Commit
6beeb962
authored
Dec 03, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h263 modified quantization fix
Originally committed as revision 2557 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b7cbfc23
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
h263dec.c
libavcodec/h263dec.c
+1
-1
mpegvideo.c
libavcodec/mpegvideo.c
+8
-8
msmpeg4.c
libavcodec/msmpeg4.c
+1
-1
wmv2.c
libavcodec/wmv2.c
+1
-1
No files found.
libavcodec/h263dec.c
View file @
6beeb962
...
...
@@ -147,7 +147,7 @@ static int decode_slice(MpegEncContext *s){
s
->
resync_mb_y
=
s
->
mb_y
;
s
->
y_dc_scale
=
s
->
y_dc_scale_table
[
s
->
qscale
];
s
->
c_dc_scale
=
s
->
c_dc_scale_table
[
s
->
qscale
];
s
->
c_dc_scale
=
s
->
c_dc_scale_table
[
s
->
chroma_
qscale
];
if
(
s
->
partitioned_frame
){
const
int
qscale
=
s
->
qscale
;
...
...
libavcodec/mpegvideo.c
View file @
6beeb962
...
...
@@ -2651,9 +2651,9 @@ static inline void MPV_motion(MpegEncContext *s,
/* put block[] to dest[] */
static
inline
void
put_dct
(
MpegEncContext
*
s
,
DCTELEM
*
block
,
int
i
,
uint8_t
*
dest
,
int
line_size
)
DCTELEM
*
block
,
int
i
,
uint8_t
*
dest
,
int
line_size
,
int
qscale
)
{
s
->
dct_unquantize
(
s
,
block
,
i
,
s
->
qscale
);
s
->
dct_unquantize
(
s
,
block
,
i
,
qscale
);
s
->
dsp
.
idct_put
(
dest
,
line_size
,
block
);
}
...
...
@@ -2857,14 +2857,14 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
}
else
{
/* dct only in intra block */
if
(
s
->
encoding
||
!
(
s
->
codec_id
==
CODEC_ID_MPEG1VIDEO
||
s
->
codec_id
==
CODEC_ID_MPEG2VIDEO
)){
put_dct
(
s
,
block
[
0
],
0
,
dest_y
,
dct_linesize
);
put_dct
(
s
,
block
[
1
],
1
,
dest_y
+
8
,
dct_linesize
);
put_dct
(
s
,
block
[
2
],
2
,
dest_y
+
dct_offset
,
dct_linesize
);
put_dct
(
s
,
block
[
3
],
3
,
dest_y
+
dct_offset
+
8
,
dct_linesize
);
put_dct
(
s
,
block
[
0
],
0
,
dest_y
,
dct_linesize
,
s
->
qscale
);
put_dct
(
s
,
block
[
1
],
1
,
dest_y
+
8
,
dct_linesize
,
s
->
qscale
);
put_dct
(
s
,
block
[
2
],
2
,
dest_y
+
dct_offset
,
dct_linesize
,
s
->
qscale
);
put_dct
(
s
,
block
[
3
],
3
,
dest_y
+
dct_offset
+
8
,
dct_linesize
,
s
->
qscale
);
if
(
!
(
s
->
flags
&
CODEC_FLAG_GRAY
)){
put_dct
(
s
,
block
[
4
],
4
,
dest_cb
,
uvlinesize
);
put_dct
(
s
,
block
[
5
],
5
,
dest_cr
,
uvlinesize
);
put_dct
(
s
,
block
[
4
],
4
,
dest_cb
,
uvlinesize
,
s
->
chroma_qscale
);
put_dct
(
s
,
block
[
5
],
5
,
dest_cr
,
uvlinesize
,
s
->
chroma_qscale
);
}
}
else
{
s
->
dsp
.
idct_put
(
dest_y
,
dct_linesize
,
block
[
0
]);
...
...
libavcodec/msmpeg4.c
View file @
6beeb962
...
...
@@ -1258,7 +1258,7 @@ return -1;
if(!had_i) return -1;
}
#endif
s
->
qscale
=
get_bits
(
&
s
->
gb
,
5
);
s
->
chroma_qscale
=
s
->
qscale
=
get_bits
(
&
s
->
gb
,
5
);
if
(
s
->
qscale
==
0
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"invalid qscale
\n
"
);
return
-
1
;
...
...
libavcodec/wmv2.c
View file @
6beeb962
...
...
@@ -368,7 +368,7 @@ return -1;
code
=
get_bits
(
&
s
->
gb
,
7
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"I7:%X/
\n
"
,
code
);
}
s
->
qscale
=
get_bits
(
&
s
->
gb
,
5
);
s
->
chroma_qscale
=
s
->
qscale
=
get_bits
(
&
s
->
gb
,
5
);
if
(
s
->
qscale
<
0
)
return
-
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