OSDN Git Service

fix an off-by-one error in assignment of audio stream registration descriptor
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 9 Nov 2009 18:02:37 +0000 (18:02 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 9 Nov 2009 18:02:37 +0000 (18:02 +0000)
commita3c130b4f8cac7feada8d30a397146024bc087f8
treefe6a8d655eafd8c14df088016a1df20840d256e9
parent116b8c1202913a7333298664b5859f5d873213dd
fix an off-by-one error in assignment of audio stream registration descriptor
format.  This sometimes caused the misdetection of TrueHD audio since it
would be tagged as the format of the stream following it in the PMT.

Also fix a problem in PMT parsing that I stumbled upon while investigating
the above problem.  If a PMT has a PID listed more than once for some reason,
we would add that PID multiple times to our stream list.  And if it happened
to be a video PID that is duplicated, the duplications would be interpreted
as audio PIDs.

git-svn-id: svn://localhost/HandBrake/trunk@2920 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/stream.c