summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-05-13 10:27:36 +0000
committerjstebbins <[email protected]>2014-05-13 10:27:36 +0000
commit4f26df992773986e3134907aabca1efe216c7a59 (patch)
tree6973bd56e6519c7a5836c156bfec2910c356a7f6 /libhb/common.h
parentfbef8a53808d5927abb8bdb1a99fac82d9901505 (diff)
demux: fix problem with widely spaced SCRs
Fixes this bug report https://forum.handbrake.fr/viewtopic.php?f=12&t=30032 Split MPEG demuxer into TS demuxer and PS demuxer to allow using different PCR/SCR delta tolerance in each scenario. We were using a PCR/SCR delta tolerance that was a bit of a compromise between the max allowed by the specification for TS vs PS streams. But the spec for TS PCR is 100ms and the spec for PS SCR is 700ms, so we risked false detection of discontinuities in PS. In PS streams that pack multiple frames into one PES packet, the detection of a discontinuity causes recalculation of an scr offset which jumps around wildly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6183 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/common.h b/libhb/common.h
index d85c7224b..236f96895 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -897,7 +897,7 @@ struct hb_title_s
int rate;
int rate_base;
int crop[4];
- enum { HB_DVD_DEMUXER, HB_MPEG_DEMUXER, HB_NULL_DEMUXER } demuxer;
+ enum {HB_DVD_DEMUXER, HB_TS_DEMUXER, HB_PS_DEMUXER, HB_NULL_DEMUXER} demuxer;
int detected_interlacing;
int pcr_pid; /* PCR PID for TS streams */
int video_id; /* demuxer stream id for video */