X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fdshow.c;h=3f1e9f61d237ec279e7a607796e5d6c4e7089bbc;hb=626535f6a169e2d821b969e0ea77125ba7482113;hp=73a9a48b209e87dd1537d66cb5f9d348751f2b42;hpb=14fa0a4efbc989619860ed8ec0fd33dcdae558b0;p=ffmpeg diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 73a9a48b209..3f1e9f61d23 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -369,7 +369,7 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype, enum AVPixelFormat pix_fmt = dshow_pixfmt(bih->biCompression, bih->biBitCount); if (pix_fmt == AV_PIX_FMT_NONE) { enum AVCodecID codec_id = av_codec_get_id(tags, bih->biCompression); - AVCodec *codec = avcodec_find_decoder(codec_id); + const AVCodec *codec = avcodec_find_decoder(codec_id); if (codec_id == AV_CODEC_ID_NONE || !codec) { av_log(avctx, AV_LOG_INFO, " unknown compression type 0x%X", (int) bih->biCompression); } else {