avcodec/libdav1d: Don't cast const away unnecessarily

Possible since c89f6ae689.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-04-03 20:03:14 +02:00
parent 1cb1f29a04
commit 0dbf45120a
1 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
{
Libdav1dContext *dav1d = c->priv_data;
Dav1dPicture pic = { 0 }, *p = &pic;
AVPacket *pkt;
const AVPacket *pkt;
#if FF_DAV1D_VERSION_AT_LEAST(5,1)
enum Dav1dEventFlags event_flags = 0;
#endif
@ -439,7 +439,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
INT_MAX);
ff_set_sar(c, frame->sample_aspect_ratio);
pkt = (AVPacket *)p->m.user_data.data;
pkt = (const AVPacket *)p->m.user_data.data;
// match timestamps and packet size
res = ff_decode_frame_props_from_pkt(c, frame, pkt);