OSDN Git Service

stagefright-plugins: Fix eos flush problem.
authorKeith Mok <kmok@cyngn.com>
Fri, 22 Apr 2016 21:55:11 +0000 (14:55 -0700)
committerKeith Mok <kmok@cyngn.com>
Fri, 22 Apr 2016 22:21:23 +0000 (15:21 -0700)
commit38e74de2c8eafcec1405fb1feb98225def9149ea
tree8e11fa052abb52703ce0279d0c733529accf62d3
parent9948eb38a906a23def09d79a42029e2a651651af
stagefright-plugins: Fix eos flush problem.

When input stream eos encounter, the output
buffer are not flushed correctly. a null data
must be passed to the ffmpeg decodebr
(avcodec_decode_video2) when the codec is
with flag CODEC_CAP_DELAY.

This fix cts testEOSBehaviorMpeg4 and testCodecEarlyEOSMpeg4
under package android.media.cts.DecoderTest.

This can be simulate on other devices by disable the h/w
mpeg4 omx component.

FEIJ-88

Change-Id: I84ffd7c2a1e4844afe4c891f0440ed4e3c7effe3
omx/SoftFFmpegVideo.cpp