Commit 6c537510 authored by Marton Balint's avatar Marton Balint

mpegts: always reset pes packet state on new packet

Fixes ticket #3584.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent a7827432
......@@ -918,9 +918,10 @@ static int mpegts_push_data(MpegTSFilter *filter,
if (pes->state == MPEGTS_PAYLOAD && pes->data_index > 0) {
new_pes_packet(pes, ts->pkt);
ts->stop_parse = 1;
} else {
reset_pes_packet_state(pes);
}
pes->state = MPEGTS_HEADER;
pes->data_index = 0;
pes->ts_packet_pos = pos;
}
p = buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment