Introduce a negative HB_INVALID_AMIXDOWN.

Having the audio->config.out.mixdown start at 0 caused it to be treated as usigned (under OS X at least), causing the sanitizing code in work.c to fail:

line 820, (audio->config.out.mixdown <= 0) would evaluate as false, and so the best mixdown was being set instead of the default one.



git-svn-id: svn://localhost/HandBrake/trunk@4878 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
Use HB_INVALID_AMIXDOWN and HB_AMIXDOWN_NONE where applicable.



git-svn-id: svn://localhost/HandBrake/trunk@4879 b64f7644-9d1e-0410-96f1-a4d463321fa5
work: don't sanitize output bitrate etc. for passthrough audio.



git-svn-id: svn://localhost/HandBrake/trunk@4880 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
work: indentation and miscellaneous cosmetics.



git-svn-id: svn://localhost/HandBrake/trunk@4881 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
work: simplify & optimize.



git-svn-id: svn://localhost/HandBrake/trunk@4882 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
Bump Libav to v0.8-2551-gc83f44d.

Fixes an issue in assembly code that could result in very poor performance when encoding with x264 & AC3 Passthru.

Thanks to our John Stebbins for finding the cause of the bug, and to x264 & Libav developers for fixing it.

Miscellaneous other fixes and improvements, including multichannel Apple Lossless audio decoding support.

Also, clean up our Libav configure options (group things together, disable all hardware accelerations with one switch instead of individually, and disable building the unused avfilter library).



git-svn-id: svn://localhost/HandBrake/trunk@4883 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
libhb: Allow control of audio mix normalization
Since switching to libavresample for audio mixing, our output
volume levels have been reduced because libavresample
does mix level normalization by default.  This change
applies a patch to libav to allow us to disable this behavior
and adds a new field to hb_audio_config_t to allow the
hb frontends to control this feature.


git-svn-id: svn://localhost/HandBrake/trunk@4884 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
Use hb_audio_resample for downmixing AC3 sources. DRC is still applied by liba52.

Add support for center & surround mix levels to hb_audio_resample.

This allows us to support upmixing all audio sources. For sources that have at least 2 front and one back or side channel(s), allow upmixing to 5.1:

3.0/3.1 (2 front and 1 back channels)
4.0/4.1 (3 front and 1 back channels)
4.0/4.1 (2 front and 2 side channels)
5.0     (3 front and 2 side channels)



git-svn-id: svn://localhost/HandBrake/trunk@4885 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
build system: enforce an order to applying contrib patches
New patch for a52dec has a dependency on another patch and must be
applied after it.  Patches appeared to be getting applied in whatever
order the filesystem presented the files in.


git-svn-id: svn://localhost/HandBrake/trunk@4886 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
Encode log: indicate if audio->config.out.normalize_mix_level is enabled.



git-svn-id: svn://localhost/HandBrake/trunk@4887 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merge branch 'master' of git@github.com:HandBrake/HandBrake
WinGui: Added a right click menu for the Audio, Subtitles and Chapters tabs with some common actions.

git-svn-id: svn://localhost/HandBrake/trunk@4888 b64f7644-9d1e-0410-96f1-a4d463321fa5