avformat/mpegts: Remove redundant check
Fixes part of Ticket3466
Found-by: Andrey_Karpov / PVS-Studio
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ff6fa0b4b9
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1370,7 +1370,7 @@ static void m4sl_cb(MpegTSFilter *filter, const uint8_t *section, int section_le
|
|||||||
AVStream *st;
|
AVStream *st;
|
||||||
if (ts->pids[pid]->es_id != mp4_descr[i].es_id)
|
if (ts->pids[pid]->es_id != mp4_descr[i].es_id)
|
||||||
continue;
|
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);
|
av_log(s, AV_LOG_ERROR, "pid %x is not PES\n", pid);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user