WinGui: Adding support for the VP8 encoder. Changing "CQ" to "RF" for x265

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6168 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Fix an issue on the Audio panel that was resetting the audio selection mode on title change, if there were no audio tracks on the selected title.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6169 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Add a warning on the add preset window if both custom width/height are empty in custom mode.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6170 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Custom W/H check should be for custom only.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6171 b64f7644-9d1e-0410-96f1-a4d463321fa5
deccc608sub: fix cropping of CCs

If the CC was in the crop area at the top of the image, it's position
was not moved properly.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6172 b64f7644-9d1e-0410-96f1-a4d463321fa5
LinGui: fix linking with mingw

Fedora's mingw pthreads no longer has pthread_win32_process_attach_np,
so force linking to the pthreadw32 contrib package.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6173 b64f7644-9d1e-0410-96f1-a4d463321fa5
LinGui: improved auto destination naming

Allows auto name template like WinGui


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6174 b64f7644-9d1e-0410-96f1-a4d463321fa5
Bump x264 to r2431 ac76440.

Miscellaneous bugfixes and improvements, as usual.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6175 b64f7644-9d1e-0410-96f1-a4d463321fa5
encx265: fix chapter insertion.

Checking whether we should attach a chapter to
the output buffer is not enough, we actually
have to attach it too.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6176 b64f7644-9d1e-0410-96f1-a4d463321fa5
Xcode: small cleanup after libvpx support commit.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6177 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Pre-populate the add preset custom width/height when custom is used.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6178 b64f7644-9d1e-0410-96f1-a4d463321fa5
Xcode: another small cleanup.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6179 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Cosmetic improvement to the SplitButton Control. It no longer appears for a split second when the control initialises. 

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6180 b64f7644-9d1e-0410-96f1-a4d463321fa5
mux: eliminate 32 track limit

The limit was due to using an uint32_t as a bit vector.  This solves 
the limitation by introducing an hb_bitvec_t struct for bit vectors
of unlimited size.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6181 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGUI: fix line endings after last commit.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6182 b64f7644-9d1e-0410-96f1-a4d463321fa5
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
Bump libav to version 10.1

Miscellaneous bugfixes and security fixes.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6184 b64f7644-9d1e-0410-96f1-a4d463321fa5
Bump x265 to version 1.0

Miscellaneous bugfixes and performance improvements.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6185 b64f7644-9d1e-0410-96f1-a4d463321fa5
Remove empty file faster last commit.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6186 b64f7644-9d1e-0410-96f1-a4d463321fa5
mux: fix problems created by >32 track limit patch

First problem was pre-existing, but hidden.  Interleaving was severely
broken because we relied on buf->s.stop to determin interleave points.
stop is not guaranteed to be set.

Other problems with the new bit vector code caused failure to complete
muxing.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6187 b64f7644-9d1e-0410-96f1-a4d463321fa5