mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +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:
parent
0358cca39e
commit
34676fc94d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user