[FFmpeg-cvslog] mpegts: remove uneeded buf_size check

Marton Balint git at videolan.org
Tue May 6 15:47:37 CEST 2014


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Fri May  2 01:35:28 2014 +0200| [a82e87618fc04fe146ccd2da5f50154c4461e3f6] | committer: Marton Balint

mpegts: remove uneeded buf_size check

It is already ensured by the loop condition

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a82e87618fc04fe146ccd2da5f50154c4461e3f6
---

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



More information about the ffmpeg-cvslog mailing list