You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mpegts: always reset pes packet state on new packet
Fixes ticket #3584. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -918,9 +918,10 @@ static int mpegts_push_data(MpegTSFilter *filter,
|
|||||||
if (pes->state == MPEGTS_PAYLOAD && pes->data_index > 0) {
|
if (pes->state == MPEGTS_PAYLOAD && pes->data_index > 0) {
|
||||||
new_pes_packet(pes, ts->pkt);
|
new_pes_packet(pes, ts->pkt);
|
||||||
ts->stop_parse = 1;
|
ts->stop_parse = 1;
|
||||||
|
} else {
|
||||||
|
reset_pes_packet_state(pes);
|
||||||
}
|
}
|
||||||
pes->state = MPEGTS_HEADER;
|
pes->state = MPEGTS_HEADER;
|
||||||
pes->data_index = 0;
|
|
||||||
pes->ts_packet_pos = pos;
|
pes->ts_packet_pos = pos;
|
||||||
}
|
}
|
||||||
p = buf;
|
p = buf;
|
||||||
|
Reference in New Issue
Block a user