Skip to content

Commit

Permalink
Change the name of the switch to be more helpful, update the help
Browse files Browse the repository at this point in the history
to explain why, now I've looked back at the ts.c code and seen what
it actually does.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40135
  • Loading branch information
tibs committed Feb 26, 2009
1 parent 34f5b71 commit 6b4c838
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tsplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,10 +955,6 @@ static void print_help_ts()
"Transport Stream Switches:\n"
"The following switches are only applicable if the input data is TS.\n"
"\n"
" -usepcr <pid> Ignore the PCR PID specified in the PMT, and use\n"
" the given PCR PID instead. This currently only works\n"
" if PCR buffering (the default, see below) is being used.\n"
"\n"
" -ignore <pid> Any TS packets with this PID will not be output\n"
" (more accurately, any TS packets with this PID and with\n"
" PCR information will be transmitted with PID 0x1FFF, and\n"
Expand All @@ -982,6 +978,15 @@ static void print_help_ts()
"constant bitrate, but does not cope well if the bitrate varies greatly.\n"
"\n"
"Note that '-nopcrs' (see '-help tuning') also implies '-oldpace'.\n"
"\n"
"In order to buffer PCRs, the first PCR must be found. Normally this is done\n"
"by finding the first PAT/PMT, and reading the PCR PID from there. However,\n"
"sometimes it is useful to *tell* the program where to look for its first PCR:\n"
"\n"
" -forcepcr <pid> Specifies which PID to look for to find the first PCR.\n"
"\n"
"Note that after the first PCR is read, *all* TS packets are inspected for\n"
"PCRs, irrespective of PID.\n"
);
}

Expand Down Expand Up @@ -1259,7 +1264,7 @@ int main(int argc, char **argv)
{
scan_for_PCRs = FALSE;
}
else if (!strcmp("-usepcr",argv[ii]))
else if (!strcmp("-forcepcr",argv[ii]))
{
CHECKARG("tsplay",ii);
err = unsigned_value("tsplay",argv[ii],argv[ii+1],0,&override_pcr_pid);
Expand Down

0 comments on commit 6b4c838

Please sign in to comment.