mpegts: remove uneeded buf_size check
authorMarton Balint <cus@passwd.hu>
Thu, 1 May 2014 23:35:28 +0000 (01:35 +0200)
committerMarton Balint <cus@passwd.hu>
Mon, 5 May 2014 20:33:52 +0000 (22:33 +0200)
It is already ensured by the loop condition

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mpegts.c

index fe51d73..20bed02 100644 (file)
@@ -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);