]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/v4l2.c
Merge commit '33d412eb4a2a083c1514ddbe69295b37e1918a8c'
[ffmpeg] / libavdevice / v4l2.c
index 8337cf5fc51fc9e5e0a91567a847a240fec53a1b..0f64d741b67af01e893580cda4fbbb7a7cd7ab8e 100644 (file)
@@ -285,9 +285,9 @@ static void list_formats(AVFormatContext *ctx, int type)
                    vfd.description);
         } else if (vfd.flags & V4L2_FMT_FLAG_COMPRESSED &&
                    type & V4L_COMPFORMATS) {
-            AVCodec *codec = avcodec_find_decoder(codec_id);
-            av_log(ctx, AV_LOG_INFO, "Compressed: %9s : %20s :",
-                   codec ? codec->name : "Unsupported",
+            const AVCodecDescriptor *desc = avcodec_descriptor_get(codec_id);
+            av_log(ctx, AV_LOG_INFO, "Compressedll      : %9s : %20s :",
+                   desc ? desc->name : "Unsupported",
                    vfd.description);
         } else {
             continue;