[FFmpeg-cvslog] avcodec/cfhd: log version tags too

Paul B Mahol git at videolan.org
Sun Aug 9 19:49:02 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Aug  9 13:21:34 2020 +0200| [17d1454a5f925f5f9755f3ef5471ae61e31927ed] | committer: Paul B Mahol

avcodec/cfhd: log version tags too

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

 libavcodec/cfhd.c | 10 ++++++++++
 libavcodec/cfhd.h |  5 +++++
 2 files changed, 15 insertions(+)

diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 94eaccc733..a7390327bf 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -457,6 +457,16 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
         } else if (tag == FrameType) {
             s->frame_type = data;
             av_log(avctx, AV_LOG_DEBUG, "Frame type %"PRIu16"\n", data);
+        } else if (abstag == VersionMajor) {
+            av_log(avctx, AV_LOG_DEBUG, "Version major %"PRIu16"\n", data);
+        } else if (abstag == VersionMinor) {
+            av_log(avctx, AV_LOG_DEBUG, "Version minor %"PRIu16"\n", data);
+        } else if (abstag == VersionRevision) {
+            av_log(avctx, AV_LOG_DEBUG, "Version revision %"PRIu16"\n", data);
+        } else if (abstag == VersionEdit) {
+            av_log(avctx, AV_LOG_DEBUG, "Version edit %"PRIu16"\n", data);
+        } else if (abstag == Version) {
+            av_log(avctx, AV_LOG_DEBUG, "Version %"PRIu16"\n", data);
         } else if (tag == ImageWidth) {
             av_log(avctx, AV_LOG_DEBUG, "Width %"PRIu16"\n", data);
             s->coded_width = data;
diff --git a/libavcodec/cfhd.h b/libavcodec/cfhd.h
index fa4a2d28f5..dc329b724b 100644
--- a/libavcodec/cfhd.h
+++ b/libavcodec/cfhd.h
@@ -34,6 +34,10 @@ enum CFHDParam {
     SampleType       =   1,
     SampleIndexTable =   2,
     BitstreamMarker  =   4,
+    VersionMajor     =   5,
+    VersionMinor     =   6,
+    VersionRevision  =   7,
+    VersionEdit      =   8,
     TransformType    =  10,
     NumFrames        =  11,
     ChannelCount     =  12,
@@ -78,6 +82,7 @@ enum CFHDParam {
     Precision        =  70,
     InputFormat      =  71,
     BandCodingFlags  =  72,
+    Version          =  79,
     BandSecondPass   =  82,
     PrescaleTable    =  83,
     EncodedFormat    =  84,



More information about the ffmpeg-cvslog mailing list