summaryrefslogtreecommitdiff
path: root/libavcodec/subviewerdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-30 23:42:44 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-05 20:02:47 +0200
commit6ed0d95fa207f587b3542f3e8349932118ad8d5d (patch)
tree0efdc364f0fdc5ab9e517219bc1053db3e8e2e73 /libavcodec/subviewerdec.c
parent4243da4ff42e306b3622b181e12f5cd127d21414 (diff)
downloadffmpeg-6ed0d95fa207f587b3542f3e8349932118ad8d5d.tar.gz
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/subviewerdec.c')
-rw-r--r--libavcodec/subviewerdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/subviewerdec.c b/libavcodec/subviewerdec.c
index b6acea93f5..2bda5fa5c1 100644
--- a/libavcodec/subviewerdec.c
+++ b/libavcodec/subviewerdec.c
@@ -48,7 +48,7 @@ static int subviewer_event_to_ass(AVBPrint *buf, const char *p)
}
static int subviewer_decode_frame(AVCodecContext *avctx, AVSubtitle *sub,
- int *got_sub_ptr, AVPacket *avpkt)
+ int *got_sub_ptr, const AVPacket *avpkt)
{
int ret = 0;
const char *ptr = avpkt->data;