OSDN Git Service

DO NOT MERGE - SoftMPEG4: Check the buffer size before writing the reference frame.
authorPawin Vongmasa <pawin@google.com>
Tue, 19 Jul 2016 03:12:02 +0000 (20:12 -0700)
committerPawin Vongmasa <pawin@google.com>
Wed, 17 Aug 2016 12:44:12 +0000 (12:44 +0000)
commit180185da195c42d366a16d9c087413dd8c07d58b
tree99bfde76b1d8e013916d722ed7a3ee1907025801
parent8f4b1a7de0e102b9203cfda3970edd2eedd9becf
DO NOT MERGE - SoftMPEG4: Check the buffer size before writing the reference frame.

Also prevent overflow in SoftMPEG4 and division by zero in SoftMPEG4Encoder.

Bug: 30033990
Change-Id: I7701f5fc54c2670587d122330e5dc851f64ed3c2
(cherry picked from commit 695123195034402ca76169b195069c28c30342d3)
media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
media/libstagefright/codecs/m4v_h263/enc/SoftMPEG4Encoder.cpp