aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2014-05-02 01:35:28 +0200
committerMarton Balint <cus@passwd.hu>2014-05-05 22:33:52 +0200
commita82e87618fc04fe146ccd2da5f50154c4461e3f6 (patch)
treef9323a21b616d0e7322c4e314cf9cc6a82db2c10
parent4aa7848eb865c8605de56e73e7e035ee15fbf9af (diff)
downloadffmpeg-a82e87618fc04fe146ccd2da5f50154c4461e3f6.tar.gz
mpegts: remove uneeded buf_size check
It is already ensured by the loop condition Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index fe51d7316e..20bed02261 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);