aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bitpacked.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-04 13:13:20 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-09 13:41:22 +0100
commit74bffc00c541079e5a052988485f26cdd4d43bb0 (patch)
treeee022c5d2e37f4229e0b4b5a28217b11fd2c6b3e /libavcodec/bitpacked.c
parent74b5564fb51107fc512bd25081ce7e11cb35871e (diff)
downloadffmpeg-74bffc00c541079e5a052988485f26cdd4d43bb0.tar.gz
avcodec: Constify some AVPackets
Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/bitpacked.c')
-rw-r--r--libavcodec/bitpacked.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/bitpacked.c b/libavcodec/bitpacked.c
index 952ba73a32..23e82c69b5 100644
--- a/libavcodec/bitpacked.c
+++ b/libavcodec/bitpacked.c
@@ -33,12 +33,12 @@
struct BitpackedContext {
int (*decode)(AVCodecContext *avctx, AVFrame *frame,
- AVPacket *pkt);
+ const AVPacket *pkt);
};
/* For this format, it's a simple passthrough */
static int bitpacked_decode_uyvy422(AVCodecContext *avctx, AVFrame *frame,
- AVPacket *avpkt)
+ const AVPacket *avpkt)
{
int ret;
@@ -56,7 +56,7 @@ static int bitpacked_decode_uyvy422(AVCodecContext *avctx, AVFrame *frame,
}
static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
- AVPacket *avpkt)
+ const AVPacket *avpkt)
{
uint64_t frame_size = (uint64_t)avctx->width * (uint64_t)avctx->height * 20;
uint64_t packet_size = (uint64_t)avpkt->size * 8;