diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-07 16:01:04 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-08 14:00:37 +0100 |
commit | 9ae40f282d5e68025be553c60cb91d4672ebe5bb (patch) | |
tree | f577d903386b80f7db9b201636960dcae11bf9e8 /libavcodec/nvdec.c | |
parent | cd31eac9997dc49b1d2b8de97b38c51ed8e9f4c9 (diff) | |
download | ffmpeg-9ae40f282d5e68025be553c60cb91d4672ebe5bb.tar.gz |
avcodec/nvdec: Constify bitstream pointee
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/nvdec.c')
-rw-r--r-- | libavcodec/nvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index d13b790632..553c9bdf18 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -680,7 +680,7 @@ int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, ctx->slice_offsets = tmp; if (!ctx->bitstream) - ctx->bitstream = (uint8_t*)buffer; + ctx->bitstream = buffer; ctx->slice_offsets[ctx->nb_slices] = buffer - ctx->bitstream; ctx->bitstream_len += size; |