OSDN Git Service

SoftAVCDec: Handle zero length input without EOS
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>
Thu, 5 Oct 2017 08:48:26 +0000 (14:18 +0530)
committerNikoli Cartagena <dargeren@google.com>
Wed, 29 Nov 2017 05:25:14 +0000 (21:25 -0800)
commit65721c8e06e2cdab9953f083d9a5dab7cd220e94
treee8a403ae13acfd0c7e7da7006dd72f3f57095495
parentb3808d9f699db667aaeafe126ba5116136f49dcd
SoftAVCDec: Handle zero length input without EOS

When a zero length input buffer is sent to SoftAVC decoder
without EOS set in nFlags, SoftAVC decoder plugin was
entering an infinite loop. Fixed it by returning from
onQueueFilled for such cases.

Bug: 66969349
Test: Tested using poc associated with the bug
Change-Id: I79cebc8f5b40c51256aba83a08deb547b220c4d7
(cherry picked from commit 21943c05f0ee2350647a6fa5ee17aa3c68859383)
media/libstagefright/codecs/avcdec/SoftAVCDec.cpp