mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
avcodec/cfhd: fix escape handling for old codebook
This commit is contained in:
parent
10ed73e933
commit
4beac58e90
@ -819,7 +819,7 @@ static int cfhd_decode(AVCodecContext *avctx, AVFrame *pic,
|
||||
VLC_BITS, 3, 1);
|
||||
|
||||
/* escape */
|
||||
if (level == 64)
|
||||
if (level == 64 && run == 2)
|
||||
break;
|
||||
|
||||
count += run;
|
||||
|
@ -72,7 +72,7 @@ static const uint16_t table_9_vlc_run[NB_VLC_TABLE_9] = {
|
||||
1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1
|
||||
1, 2,
|
||||
};
|
||||
|
||||
static const uint8_t table_9_vlc_level[NB_VLC_TABLE_9] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user