Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-31 00:42:44 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-05 21:02:47 +0300
commit6ed0d95fa207f587b3542f3e8349932118ad8d5d (patch)
tree0efdc364f0fdc5ab9e517219bc1053db3e8e2e73 /libavcodec/ccaption_dec.c
parent4243da4ff42e306b3622b181e12f5cd127d21414 (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/ccaption_dec.c')
-rw-r--r--libavcodec/ccaption_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index e33fb36824..34f0513b1a 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -839,7 +839,7 @@ static int process_cc608(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
}
static int decode(AVCodecContext *avctx, AVSubtitle *sub,
- int *got_sub, AVPacket *avpkt)
+ int *got_sub, const AVPacket *avpkt)
{
CCaptionSubContext *ctx = avctx->priv_data;
int64_t in_time = sub->pts;