mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
avcodec/cfhd: correct 71 tag usage
It stores input format and never codebook.
This commit is contained in:
parent
d2b9cb1132
commit
acaed62ad1
@ -555,9 +555,8 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
s->plane[s->channel_num].band[s->level][s->subband_num].height = data;
|
s->plane[s->channel_num].band[s->level][s->subband_num].height = data;
|
||||||
} else if (tag == 71) {
|
} else if (tag == InputFormat) {
|
||||||
s->codebook = data;
|
av_log(avctx, AV_LOG_DEBUG, "Input format %i\n", data);
|
||||||
av_log(avctx, AV_LOG_DEBUG, "Codebook %i\n", s->codebook);
|
|
||||||
} else if (tag == BandCodingFlags) {
|
} else if (tag == BandCodingFlags) {
|
||||||
s->codebook = data & 0xf;
|
s->codebook = data & 0xf;
|
||||||
s->difference_coding = (data >> 4) & 1;
|
s->difference_coding = (data >> 4) & 1;
|
||||||
|
@ -73,6 +73,7 @@ enum CFHDParam {
|
|||||||
ChannelNumber = 62,
|
ChannelNumber = 62,
|
||||||
SampleFlags = 68,
|
SampleFlags = 68,
|
||||||
Precision = 70,
|
Precision = 70,
|
||||||
|
InputFormat = 71,
|
||||||
BandCodingFlags = 72,
|
BandCodingFlags = 72,
|
||||||
PrescaleTable = 83,
|
PrescaleTable = 83,
|
||||||
EncodedFormat = 84,
|
EncodedFormat = 84,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user