1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

v4l2: Use the codec descriptor facility

The encoder or decoder might be disabled but the format would be
supported for at least remuxing.
This commit is contained in:
Luca Barbato 2015-02-27 02:12:33 +01:00
parent dbc1163b20
commit 619d5e7db8

View File

@ -315,9 +315,9 @@ static void list_formats(AVFormatContext *ctx, int fd, int type)
vfd.description);
} else if (vfd.flags & V4L2_FMT_FLAG_COMPRESSED &&
type & V4L_COMPFORMATS) {
AVCodec *codec = avcodec_find_encoder(codec_id);
const AVCodecDescriptor *desc = avcodec_descriptor_get(codec_id);
av_log(ctx, AV_LOG_INFO, "C : %9s : %20s :",
codec ? codec->name : "Unsupported",
desc ? desc->name : "Unsupported",
vfd.description);
} else {
continue;