mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
1cb1f29a04
commit
0dbf45120a
@ -385,7 +385,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
|
|||||||
{
|
{
|
||||||
Libdav1dContext *dav1d = c->priv_data;
|
Libdav1dContext *dav1d = c->priv_data;
|
||||||
Dav1dPicture pic = { 0 }, *p = &pic;
|
Dav1dPicture pic = { 0 }, *p = &pic;
|
||||||
AVPacket *pkt;
|
const AVPacket *pkt;
|
||||||
#if FF_DAV1D_VERSION_AT_LEAST(5,1)
|
#if FF_DAV1D_VERSION_AT_LEAST(5,1)
|
||||||
enum Dav1dEventFlags event_flags = 0;
|
enum Dav1dEventFlags event_flags = 0;
|
||||||
#endif
|
#endif
|
||||||
@ -439,7 +439,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
|
|||||||
INT_MAX);
|
INT_MAX);
|
||||||
ff_set_sar(c, frame->sample_aspect_ratio);
|
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
|
// match timestamps and packet size
|
||||||
res = ff_decode_frame_props_from_pkt(c, frame, pkt);
|
res = ff_decode_frame_props_from_pkt(c, frame, pkt);
|
||||||
|
Loading…
Reference in New Issue
Block a user