cmdutils: print missing caps in print_codec().
authorJun Zhao <mypopydev@gmail.com>
Fri, 25 May 2018 06:57:48 +0000 (14:57 +0800)
committerJun Zhao <jun.zhao@intel.com>
Mon, 28 May 2018 10:21:35 +0000 (18:21 +0800)
print full caps type in print_codec().

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
fftools/cmdutils.c

index 8ffc9d2..70234b8 100644 (file)
@@ -1414,6 +1414,16 @@ static void print_codec(const AVCodec *c)
                            AV_CODEC_CAP_SLICE_THREADS |
                            AV_CODEC_CAP_AUTO_THREADS))
         printf("threads ");
+    if (c->capabilities & AV_CODEC_CAP_AVOID_PROBING)
+        printf("avoidprobe ");
+    if (c->capabilities & AV_CODEC_CAP_INTRA_ONLY)
+        printf("intraonly ");
+    if (c->capabilities & AV_CODEC_CAP_LOSSLESS)
+        printf("lossless ");
+    if (c->capabilities & AV_CODEC_CAP_HARDWARE)
+        printf("hardware ");
+    if (c->capabilities & AV_CODEC_CAP_HYBRID)
+        printf("hybrid ");
     if (!c->capabilities)
         printf("none");
     printf("\n");