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:
wm4 2017-10-23 11:28:31 +02:00
parent 0358cca39e
commit 34676fc94d
1 changed files with 1 additions and 0 deletions

View File

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