Browse Source

avcodec/cfhd: correct 71 tag usage

It stores input format and never codebook.
tags/n4.4
Paul B Mahol 4 years ago
parent
commit
acaed62ad1
2 changed files with 3 additions and 3 deletions
  1. +2
    -3
      libavcodec/cfhd.c
  2. +1
    -0
      libavcodec/cfhd.h

+ 2
- 3
libavcodec/cfhd.c View File

@@ -555,9 +555,8 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
break;
}
s->plane[s->channel_num].band[s->level][s->subband_num].height = data;
} else if (tag == 71) {
s->codebook = data;
av_log(avctx, AV_LOG_DEBUG, "Codebook %i\n", s->codebook);
} else if (tag == InputFormat) {
av_log(avctx, AV_LOG_DEBUG, "Input format %i\n", data);
} else if (tag == BandCodingFlags) {
s->codebook = data & 0xf;
s->difference_coding = (data >> 4) & 1;


+ 1
- 0
libavcodec/cfhd.h View File

@@ -73,6 +73,7 @@ enum CFHDParam {
ChannelNumber = 62,
SampleFlags = 68,
Precision = 70,
InputFormat = 71,
BandCodingFlags = 72,
PrescaleTable = 83,
EncodedFormat = 84,


Loading…
Cancel
Save