OSDN Git Service

stagefright-plugins: Implement frame dropping and AV sync
authorSteve Kondik <steve@cyngn.com>
Thu, 27 Nov 2014 11:12:07 +0000 (03:12 -0800)
committerSteve Kondik <steve@cyngn.com>
Fri, 28 Nov 2014 18:39:43 +0000 (10:39 -0800)
commita5d3c4c26a3cad385dcf55c8f7f46de89abf3c5d
treec084d4a0f014ccb8d5e810b4fc30ba31c10c8a03
parent58f1679a279d6da5aa7cbc7658991774a957344a
stagefright-plugins: Implement frame dropping and AV sync

 * Keep the video from lagging behind the audio by dropping
   frames when we're too far behind.
 * Set options to improve video playback performance
 * It's still a quite terrible experience without hardware decoding,
   but prior to this patch it was possible that the first slow
   frame would be droped by Stagefright and the lag would just grow,
   resulting in a black screen.

Change-Id: Ib10933d385d593d8e887bca033f22b68a812bc7c
libstagefright/codecs/ffmpegdec/adec/SoftFFmpegAudio.cpp
libstagefright/codecs/ffmpegdec/adec/SoftFFmpegAudio.h
libstagefright/codecs/ffmpegdec/vdec/Android.mk
libstagefright/codecs/ffmpegdec/vdec/SoftFFmpegVideo.cpp
libstagefright/codecs/ffmpegdec/vdec/SoftFFmpegVideo.h
utils/ffmpeg_utils.cpp
utils/ffmpeg_utils.h