FFMPEGMediaPlayer: Decode audio frames.

Re-enable code to decode audio frame.

Throw a runtime exception for unimplemented sp_avcodec_decode_audio3 fallback.

Fix pts calculation to prevent division by zero caused by type truncation.
Fix aPTS calculation to use valid data.

Hide pts & aPTS info while running non-verbose.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: Use the Audio codec to decode audio. Also prevent double free of packet memory.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: Lookup decoded audio data_size using av_samples_get_buffer_size

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: Decode all frames inside video packet.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: Workaround dropped video frames while decoding audio.

A temporal solution before we implement video decode and frame cache
in a separate thread.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: Workaround forward seek delay caused by video sync.

Prevent the video sync code to delay a frame more than 1 second.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: Add updateSound callback for passing decoded jni audio frames to java.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
partial implementation of Java Sound output
FFMPEGMediaPlayer: blocking Java Sound output
FFMPEGMediaPlayer: Poor mans audio/video sync.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: Limit video sync delay to 47ms in order to fix audio buffer underrun.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
FFMPEGMediaPlayer: fix audio pts for varying audio frame format.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
reformatted to same style
removed unnecessary castings, removed unnecessary methods for vector operations changed to VectorUtil instead
fixed isIdentity method, deprecated isEmpty method (quaternion doesn't have such a property + method do same thing as isIdentity), new setIdentity method, default constructor sets this quaternion to identity, new fromAxis method/costructor
new method for vector multiplication, new copy constructor
Quaternion.java : fixed not clear assignment
Merge branch 'master' of https://github.com/petr-s/jogl
Merge remote-tracking branch 'xranby/github/FFMPEGMediaPlayer-audio' into FFMPEGMediaPlayer
FFMPEGMediaPlayer: Add AudioSink interface.

Use ALAudioSink when available and fallback to
JavaSoundAudioSink when JOAL are not found on classpath.

Java Sound playback moved from FFMPEGMediaPlayer into JavaSoundAudioSink.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>