OSDN Git Service

fix a couple transport stream issues
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 23 Oct 2009 02:20:47 +0000 (02:20 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 23 Oct 2009 02:20:47 +0000 (02:20 +0000)
commit26dd288fe0de35c97572508ad1120ebd6390da0d
tree5e6b0cc0d5cdb29355e2d756e51d9351c0fc510d
parent3c2e0593cb423f0c8eb11b417f115bfae66195c7
fix a couple transport stream issues

when the first packet seen is audio, the stream timing for the audio
must be initialized a little different then when it follows video

add a more thorough check for duplicate packets.
a ts stream that is the result of splicing multiple clips together can
have duplicate continuity count values.  usually this means that a duplicate
packet exists and the duplicate is dropped.  but in the case of spliced
clips, the packet should not be dropped.

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