Commit a82e8761 authored by Marton Balint's avatar Marton Balint

mpegts: remove uneeded buf_size check

It is already ensured by the loop condition
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 4aa7848e
......@@ -1107,7 +1107,7 @@ skip:
}
break;
case MPEGTS_PAYLOAD:
if (buf_size > 0 && pes->buffer) {
if (pes->buffer) {
if (pes->data_index > 0 &&
pes->data_index + buf_size > pes->total_size) {
new_pes_packet(pes, ts->pkt);
......
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