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
1 changed files with 1 additions and 0 deletions

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;
}