LinGui: build preset import/export tables from hb_encoder_t tables

This makes tracking additions to libhb encoders completely transparent to
the LinGui. Changes or deletions still require special handling to ensure
backwards compatibility.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5140 b64f7644-9d1e-0410-96f1-a4d463321fa5
LinGui: fix selection of mixdown when using fallback audio encoder

It was getting set to mono all the time :-\


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5141 b64f7644-9d1e-0410-96f1-a4d463321fa5
common.h: cosmetics.

Also remove a couple duplicate function declarations.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5142 b64f7644-9d1e-0410-96f1-a4d463321fa5
CLI: fix logging of the default mixdown in --help.

Also, some minor cosmetics/refactoring.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5143 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: add hb_get_default_audio_encoder().



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5144 b64f7644-9d1e-0410-96f1-a4d463321fa5
CLI: use hb_get_default_audio_encoder().



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5145 b64f7644-9d1e-0410-96f1-a4d463321fa5
CLI: avoid an #fidef.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5146 b64f7644-9d1e-0410-96f1-a4d463321fa5
CLI: help: print per-encoder default mixdown dynamically.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5147 b64f7644-9d1e-0410-96f1-a4d463321fa5
hb_rate_s, hb_mixdown_s, hb_encoder_s: use const char * instead of char *

These are used in hardcoded tables, so there will never be a need for mutable strings.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5148 b64f7644-9d1e-0410-96f1-a4d463321fa5
CLI: fix warning.

test/test.c:378: warning: ‘ShowCommands’ was used with no prototype before its definition



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5149 b64f7644-9d1e-0410-96f1-a4d463321fa5
LinGui: silence some compiler warnings


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5150 b64f7644-9d1e-0410-96f1-a4d463321fa5
Fix dts-hd regression

The previous dca-resync libav patch broke dts-hd


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5151 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: handle incorrect stuffing in transport streams

Incorrectly formatted stuffing causes invalid PCRs which results in sync
issues.

I've only seen this in one poorly authored BD, but it's easy to handle.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5152 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: fix audio sync regression with DVDs

A "fix" for another sync issue caused a regression in handling of DVD sync.
So revert the change and make other improvements.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5153 b64f7644-9d1e-0410-96f1-a4d463321fa5
LinGui: fix issue with FLAC24 fallback

Was setting lame as fallback when flac24 fallback was set.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5154 b64f7644-9d1e-0410-96f1-a4d463321fa5
CLI: check against NULL before freeing.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5156 b64f7644-9d1e-0410-96f1-a4d463321fa5
CLI: fix previous commit. free(NULL) is perfectly safe.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5157 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Fix AllowSleep option. Port the Numeric Stepper control from Vidcoder onto the Picture settings panel. This should fix a number of strange behavioural issues with the old control. Please report any new issues that this causes.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5158 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Restore RF0 warning and Correctly show RF or QP depending on the video encoder.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5159 b64f7644-9d1e-0410-96f1-a4d463321fa5
libiconv patch: disables building of preloadable shared lib

Needed for solaris compatibility
Thanks to icchan for the patch.


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