avcodec/cfhd: fix escape handling for old codebook

pull/388/head
Paul B Mahol 3 years ago
parent 10ed73e933
commit 4beac58e90
  1. 2
      libavcodec/cfhd.c
  2. 2
      libavcodec/cfhddata.c

@ -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…
Cancel
Save