summaryrefslogtreecommitdiff
path: root/libavcodec/nvdec_h264.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-07 16:01:04 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-08 14:00:37 +0100
commit9ae40f282d5e68025be553c60cb91d4672ebe5bb (patch)
treef577d903386b80f7db9b201636960dcae11bf9e8 /libavcodec/nvdec_h264.c
parentcd31eac9997dc49b1d2b8de97b38c51ed8e9f4c9 (diff)
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_h264.c')
-rw-r--r--libavcodec/nvdec_h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nvdec_h264.c b/libavcodec/nvdec_h264.c
index 8c72d5f4f7..ea6c1081eb 100644
--- a/libavcodec/nvdec_h264.c
+++ b/libavcodec/nvdec_h264.c
@@ -150,8 +150,8 @@ static int nvdec_h264_decode_slice(AVCodecContext *avctx, const uint8_t *buffer,
return AVERROR(ENOMEM);
ctx->slice_offsets = tmp;
- AV_WB24(ctx->bitstream + ctx->bitstream_len, 1);
- memcpy(ctx->bitstream + ctx->bitstream_len + 3, buffer, size);
+ AV_WB24(ctx->bitstream_internal + ctx->bitstream_len, 1);
+ memcpy(ctx->bitstream_internal + ctx->bitstream_len + 3, buffer, size);
ctx->slice_offsets[ctx->nb_slices] = ctx->bitstream_len ;
ctx->bitstream_len += size + 3;
ctx->nb_slices++;