mpegts: remove uneeded buf_size check

It is already ensured by the loop condition

Signed-off-by: Marton Balint <cus@passwd.hu>
pull/68/head
Marton Balint 11 years ago
parent 4aa7848eb8
commit a82e87618f
  1. 2
      libavformat/mpegts.c

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

Loading…
Cancel
Save