Change scale factor for timestamp offset in vobsub commands
Testing shows that this should be 1024 instead of 900.
Thanks to Rodeo for validation and patch.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3954 b64f7644-9d1e-0410-96f1-a4d463321fa5
fix stall due due to propagation of incorrect audio timestamp
Was passing AV_NOPTS_VALUE that is generated by libav.  Needed to
translate to -1 which is what we use to designate invalid timestamps.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3955 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: Simplify HBDVDDetector bsdName creation
- Instead of lazily populating bsdName identically in two places, why not just have its accessor do it.
-  As per patch provided by blindjimmy https://reviews.handbrake.fr/r/78/

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3956 b64f7644-9d1e-0410-96f1-a4d463321fa5
Fix a problem when encoding the same source audio track twice from BD sources
The pid and substream were being added to the TS stream list twice which
caused 2 copies of each packet to be returned to reader. This caused sync
to drop every second packet with "time went backwards" log message.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3957 b64f7644-9d1e-0410-96f1-a4d463321fa5
Make order of audio tracks found in PS streams more predictable
Since PS streams don't have a directory of streams, we find them by
scanning the PES headers for stream types.  We were adding them in the
order found which is pretty random.  This sorts audios by substream id.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3958 b64f7644-9d1e-0410-96f1-a4d463321fa5
LinGui: fix spelling error


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3959 b64f7644-9d1e-0410-96f1-a4d463321fa5
Fix Brian Lopez's name and email in AUTHORS file

patch by Brian Lopez <seniorlopez gmail com>

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3960 b64f7644-9d1e-0410-96f1-a4d463321fa5
Fix a problem with overlapping vobsubs
Since we now allow subtitles that overlap in time, it is no longer
appropriate to arbitrarily set the duration to 3 seconds when vobsubs 
don't have an explicit stop time.  This causes them to overlap on the display.
So now, we set the stop time for such vobsubs to -1. Then in sync adjust the 
stop time to the start of the next vobsub when it is seen.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3961 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui:
- Automatically attempt to create destination path if it does not exist when starting an encode.
- When adding to queue, it'll optionally ask.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3962 b64f7644-9d1e-0410-96f1-a4d463321fa5
Fix a crash that can happen due to corrupt mpeg2 data
The mpe2dec can return nonsense values for width and height that
make sws_getContext fail.  So check the context return value and
just drop the buffer if it fails.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3963 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: don't use deprecated elements of the FFmpeg/Libav API
HandBrake uses many attributes of the FFmpeg API that are were deprecated 
when we did the last bump.  Many of them no longer exist in current 
FFmpeg/Libav git, or are going to be removed soon.

Replaces them with non-deprecated attributes that already exist in the 
build we currently use.
Thanks to Rodeo for the patch.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3964 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui:
Fix a small issue with the last checkin. Folder was created but item was not added to the queue after. Forgot to remove a return statement.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3965 b64f7644-9d1e-0410-96f1-a4d463321fa5
fix screaching at the beginning of some ac3 to X transcodes
a52dec isn't completely thread safe.  It has a collection of
static data that gets initialized when a52_init is called.  
This static data gets initialized to the same thing every time,
but if one instance of the decoder is using the data when
it gets reinitialized, bad(tm) things happen.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3966 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: change key for video framerate mode from VideoframerateMode to VideoFramerateMode to match the lingui.
- Good catch Rodeo ... thanks!

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3967 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: Save picture settings by default when creating a new preset.
- Use Custom (defaulted to current picture size).
- Use currently selected Filters.
- Note this is by default. All choices are still the same
- As per https://reviews.handbrake.fr/r/82/

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3968 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui:
- Fixes to the Audio Panel. Should fix some possible enum helper exceptions and properly select the mixdown.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3969 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui:
- Fix an issue where the user could overwrite a built-in preset.
- Fix some more audio issues in relation to incorrect bitrate and sample rate being selected.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3970 b64f7644-9d1e-0410-96f1-a4d463321fa5
Remove old muxers that are no longer used by HB

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3971 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui:
- Fix to the Audio Panel Track Display which was intermittently not showing a track.
- Fixed a number of bugs in the plist parser which was prevent imports.
- Fixed a number of Issues with the Preset Import/Export.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3972 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui:
- Add Elapsed Encode Time the main window.
- Add Elapsed Queue Time to the queue window. (Note, Pausing the queue resets this currently)
- Fixed an issue with disabled controls on the audio panel after removing the last track which was passthru.

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