mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/codec, allcodecs: Constify the AVCodec API
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
14fa0a4efb
commit
626535f6a1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user