aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-16 02:06:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-16 02:35:50 +0200
commitff6fa0b4b980fc5b9f7653d7b159ae02c3d95210 (patch)
tree93cdee428f411e0573970c87123145a7328e47b7 /libavformat/mpegts.c
parent230db1426d127a25c03b457fec25900653de2721 (diff)
downloadffmpeg-ff6fa0b4b980fc5b9f7653d7b159ae02c3d95210.tar.gz
avformat/mpegts: Remove redundant check
Fixes part of Ticket3466 Found-by: Andrey_Karpov / PVS-Studio Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5ae5c26f77..fe51d7316e 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1432,7 +1432,7 @@ static void m4sl_cb(MpegTSFilter *filter, const uint8_t *section,
AVStream *st;
if (ts->pids[pid]->es_id != mp4_descr[i].es_id)
continue;
- if (!(ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES)) {
+ if (ts->pids[pid]->type != MPEGTS_PES) {
av_log(s, AV_LOG_ERROR, "pid %x is not PES\n", pid);
continue;
}