aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-02-27 02:12:33 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-03-02 11:27:57 +0100
commit619d5e7db88941cadb8136f805564e885c6c6434 (patch)
tree59f79653398a064022cbe6ae3d462b964797e874
parentdbc1163b203b175d246b7454c32ac176f84006d1 (diff)
downloadffmpeg-619d5e7db88941cadb8136f805564e885c6c6434.tar.gz
v4l2: Use the codec descriptor facility
The encoder or decoder might be disabled but the format would be supported for at least remuxing.
-rw-r--r--libavdevice/v4l2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 302639d244..d2707e6848 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -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;