diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-30 23:42:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-04-05 20:02:47 +0200 |
commit | 6ed0d95fa207f587b3542f3e8349932118ad8d5d (patch) | |
tree | 0efdc364f0fdc5ab9e517219bc1053db3e8e2e73 /libavcodec/libaribb24.c | |
parent | 4243da4ff42e306b3622b181e12f5cd127d21414 (diff) |
avcodec/codec_internal: Constify AVPacket in decode_sub cb
No subtitle decoder ever modifies the AVPacket given to it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libaribb24.c')
-rw-r--r-- | libavcodec/libaribb24.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c index e1a26e5659..9658e1d5ac 100644 --- a/libavcodec/libaribb24.c +++ b/libavcodec/libaribb24.c @@ -284,7 +284,7 @@ next_region: } static int libaribb24_decode(AVCodecContext *avctx, AVSubtitle *sub, - int *got_sub_ptr, AVPacket *pkt) + int *got_sub_ptr, const AVPacket *pkt) { Libaribb24Context *b24 = avctx->priv_data; size_t parsed_data_size = 0; |