You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/nvdec_(mjpeg|vp8): Constify AVHWAccels
The discrepancy between the actual definition and the declarations in hwaccels.h is actually UB. Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -69,7 +69,7 @@ static int nvdec_mjpeg_frame_params(AVCodecContext *avctx,
|
|||||||
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 1, 0);
|
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
AVHWAccel ff_mjpeg_nvdec_hwaccel = {
|
const AVHWAccel ff_mjpeg_nvdec_hwaccel = {
|
||||||
.name = "mjpeg_nvdec",
|
.name = "mjpeg_nvdec",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.id = AV_CODEC_ID_MJPEG,
|
.id = AV_CODEC_ID_MJPEG,
|
||||||
|
@@ -90,7 +90,7 @@ static int nvdec_vp8_frame_params(AVCodecContext *avctx,
|
|||||||
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 3, 0);
|
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 3, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
AVHWAccel ff_vp8_nvdec_hwaccel = {
|
const AVHWAccel ff_vp8_nvdec_hwaccel = {
|
||||||
.name = "vp8_nvdec",
|
.name = "vp8_nvdec",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.id = AV_CODEC_ID_VP8,
|
.id = AV_CODEC_ID_VP8,
|
||||||
|
Reference in New Issue
Block a user