mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
demux: fix crash with cue/ordered chapter files
If a packet uses segmentation, the codec field must be set. Copying the codec field was forgotten as an oversight, which is why this just crashes. This showed up only now, because demux_copy_packet() was not used before in the main demux path until recently. Fixes #5027.
This commit is contained in:
@@ -112,6 +112,7 @@ void demux_packet_copy_attribs(struct demux_packet *dst, struct demux_packet *sr
|
||||
dst->start = src->start;
|
||||
dst->end = src->end;
|
||||
dst->new_segment = src->new_segment;
|
||||
dst->codec = src->codec;
|
||||
dst->keyframe = src->keyframe;
|
||||
dst->stream = src->stream;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user