X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fv4l2.c;h=0f64d741b67af01e893580cda4fbbb7a7cd7ab8e;hb=bf691e1d39560532344e6df2e72f522cea6c9bea;hp=8337cf5fc51fc9e5e0a91567a847a240fec53a1b;hpb=6f0a82966d82a88bedab91c617df502c3855e9aa;p=ffmpeg diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 8337cf5fc51..0f64d741b67 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -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;