Commit cde6e328 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '619d5e7d'

* commit '619d5e7d':
  v4l2: Use the codec descriptor facility

Conflicts:
	libavdevice/v4l2.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents ada512f9 619d5e7d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment