[FFmpeg-devel] [PATCH 1/3] mpegts: remove uneeded buf_size check

Marton Balint cus at passwd.hu
Fri May 2 13:41:33 CEST 2014


It is already ensured by the loop condition

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index fe51d73..20bed02 100644
--- a/libavformat/mpegts.c
+++ b/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);
-- 
1.8.4.5



More information about the ffmpeg-devel mailing list