diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index d4ad972288fa7..570e431ff3e08 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -544,6 +544,9 @@ void AwesomePlayer::onEvent(int32_t code) { } if (mVideoBuffer->range_length() == 0) { + // Some decoders, notably the PV AVC software decoder + // return spurious empty buffers that we just want to ignore. + mVideoBuffer->release(); mVideoBuffer = NULL; continue;