Skip to content

Commit

Permalink
mpegts-mythtv.c: pat_cb(): move found logic into main loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmus-scott authored and bennettpeter committed Aug 15, 2022
1 parent 91ac7c2 commit 6516303
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
Expand Up @@ -3093,6 +3093,8 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
}

pmt_count++;
if (sid == ts->req_sid)
found = 1;

}

Expand All @@ -3110,7 +3112,6 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
}
}

found = 0;
for (i = 0; i < pmt_count; ++i)
{
/* if an MPEG program number is requested, and this is that program,
Expand All @@ -3131,8 +3132,6 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len

if (!ts->pids[pmt_pid])
mpegts_open_section_filter(ts, pmt_pid, pmt_cb, ts, 1);

found = 1;
}
}

Expand Down

0 comments on commit 6516303

Please sign in to comment.