Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
descrambler: fix the wrong condition in descrambler_open_pid_(), fixe…
…s #2846
  • Loading branch information
perexg committed May 15, 2015
1 parent 50e0414 commit cef2062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descrambler/descrambler.c
Expand Up @@ -623,7 +623,7 @@ descrambler_open_pid_( mpegts_mux_t *mux, void *opaque, int pid,
flags = (pid >> 16) & MT_FAST;
pid &= 0x1fff;
TAILQ_FOREACH(dt, &mux->mm_descrambler_tables, link) {
if (dt->table->mt_pid != pid && (dt->table->mt_flags & MT_FAST) != flags)
if (dt->table->mt_pid != pid || (dt->table->mt_flags & MT_FAST) != flags)
continue;
TAILQ_FOREACH(ds, &dt->sections, link) {
if (ds->opaque == opaque)
Expand Down

0 comments on commit cef2062

Please sign in to comment.