]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/dshow.c
avcodec/codec, allcodecs: Constify the AVCodec API
[ffmpeg] / libavdevice / dshow.c
index 73a9a48b209e87dd1537d66cb5f9d348751f2b42..3f1e9f61d237ec279e7a607796e5d6c4e7089bbc 100644 (file)
@@ -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 {