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:
parent
3a6ef81705
commit
d628e6108e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user