[FFmpeg-cvslog] avcodec/cfhd: correct 71 tag usage

Paul B Mahol git at videolan.org
Mon Aug 3 23:46:37 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Aug  3 22:41:45 2020 +0200| [acaed62ad1f4ba8f1c6c84d15a99cee03b1322b6] | committer: Paul B Mahol

avcodec/cfhd: correct 71 tag usage

It stores input format and never codebook.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=acaed62ad1f4ba8f1c6c84d15a99cee03b1322b6
---

 libavcodec/cfhd.c | 5 ++---
 libavcodec/cfhd.h | 1 +
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 8cd475cba4..36fdc840a6 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -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;
diff --git a/libavcodec/cfhd.h b/libavcodec/cfhd.h
index 7f35ac45f3..ba381f79f2 100644
--- a/libavcodec/cfhd.h
+++ b/libavcodec/cfhd.h
@@ -73,6 +73,7 @@ enum CFHDParam {
     ChannelNumber    =  62,
     SampleFlags      =  68,
     Precision        =  70,
+    InputFormat      =  71,
     BandCodingFlags  =  72,
     PrescaleTable    =  83,
     EncodedFormat    =  84,



More information about the ffmpeg-cvslog mailing list