1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 15:22:09 +00:00

demux: actually initialise packet buffer when creating new packet

When I refactored the code here to stop using stack allocated
AVPackets, I forgot to assign `dp->buffer` after initialising the
AVPacket.

Fixes #11097
This commit is contained in:
Philip Langdale 2023-01-06 14:01:46 -08:00
parent 3a6ef81705
commit d628e6108e

View File

@ -135,6 +135,7 @@ struct demux_packet *new_demux_packet(size_t len)
talloc_free(dp);
return NULL;
}
dp->buffer = dp->avpacket->data;
dp->len = len;
return dp;
}