summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2023-01-06 14:01:46 -0800
committerPhilip Langdale <philipl@overt.org>2023-01-06 14:03:36 -0800
commitd628e6108e9654499b99d30f7df7b2395662a4ae (patch)
tree382875aa686daf5d83d783efce946c1b279caf63 /demux
parent3a6ef8170551e8eab9ef89143db04e2e0d7ec567 (diff)
downloadmpv-d628e6108e9654499b99d30f7df7b2395662a4ae.tar.bz2
mpv-d628e6108e9654499b99d30f7df7b2395662a4ae.tar.xz
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
Diffstat (limited to 'demux')
-rw-r--r--demux/packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/packet.c b/demux/packet.c
index a7f0aa5bbe..d42470c5fe 100644
--- a/demux/packet.c
+++ b/demux/packet.c
@@ -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;
}