git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230db14
)
avformat/mpegts: Remove redundant check
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 16 Apr 2014 00:06:37 +0000
(
02:06
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 16 Apr 2014 00:35:50 +0000
(
02:35
+0200)
Fixes part of Ticket3466
Found-by: Andrey_Karpov / PVS-Studio
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegts.c
b/libavformat/mpegts.c
index
5ae5c26
..
fe51d73
100644
(file)
--- 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;
}