You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/h261dec: Inline constant
The value here has been set in ff_set_qscale() from ff_mpeg1_dc_scale_table, all of whose entries are 8. Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -262,7 +262,7 @@ static int h261_decode_block(H261DecContext *h, int16_t *block, int n, int coded
|
|||||||
* being coded as 1111 1111. */
|
* being coded as 1111 1111. */
|
||||||
if (level == 255)
|
if (level == 255)
|
||||||
level = 128;
|
level = 128;
|
||||||
block[0] = level * s->y_dc_scale;
|
block[0] = level * 8;
|
||||||
i = 1;
|
i = 1;
|
||||||
} else if (coded) {
|
} else if (coded) {
|
||||||
// Run Level Code
|
// Run Level Code
|
||||||
|
Reference in New Issue
Block a user