Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts input: fix possible NULL dereference (fix for the last patch)
  • Loading branch information
perexg committed Nov 12, 2014
1 parent 053c0e4 commit 7211380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/mpegts/mpegts_input.c
Expand Up @@ -724,10 +724,10 @@ mpegts_input_process
int table_wakeup = 0;
uint8_t *end = mpkt->mp_data + len;
mpegts_mux_t *mm = mpkt->mp_mux;
mpegts_mux_instance_t *mmi = mm->mm_active;
mpegts_mux_instance_t *mmi;
mpegts_pid_t *last_mp = NULL;

if (!mmi)
if (mm == NULL || (mmi = mm->mm_active) == NULL)
return;

mi->mi_live = 1;
Expand Down

0 comments on commit 7211380

Please sign in to comment.