libstagefright: Set sync flag in case the frame is a sync frame

Set sync flag in case the frame is a sync frame,
indicating current frame can be decoded independently
when seeking.

Change-Id: I545e126c63eca39688cac33b2a72430ba1c9279a
Author: Tianmi Chen <tianmi.chen@intel.com>
Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
Signed-off-by: Dan Liang <dan.liang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 50163
Extend MPEGExtractor to support "qt" type

1. Check if the major brand is 'qt ' in box 'ftyp' to support quicktime mp4 clips;
2. If there are some invaild data at the end of one box, skip them and keep parsing.

Change-Id: I4433c6262cd627f3446e011f32cdfd164642b815
Author: Weian Chen <weian.chen@intel.com>
Signed-off-by: Weian Chen <weian.chen@intel.com>
Signed-off-by: Mingfei Bao<mingfei.bao@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 48862, 18544, 10568
Audio streaming error when playing a stream that contains "end of file".

Although EOS is being post from Myhandler.h file upon receipt of BYE message from RTSP
server. This happens because the Nuplayer::Renderer::onDrainAudioQueue() funtion
returns false after mAudioSink->getPosition() call , and the EOS message present in
mAudioQueue was lost.
The mAudioSink->getPosition() returns NO_INIT as mAudioSink->open() is not yet called,
hence no audio track exists in MediaPlayerService::AudioOutput.

Change-Id: I90d76943d3c10986171da3bc85a2a931af79ad30
Author: Gurudatta Bhakte <gurudattax.bhakte@intel.com>
Signed-off-by: Gurudatta Bhakte <gurudattax.bhakte@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 24194
SoftVPXEncoder: Return proper dimensions for the output port

Also return the right color format for the input port.

This makes sure the MediaCodec output MediaFormat contain
the right width and height.

Change-Id: Ic97af3b5850ebaf563533c3d1cae992be3e4d074