OSDN Git Service

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>
Mon, 8 Aug 2016 03:22:05 +0000 (20:22 -0700)
commit695123195034402ca76169b195069c28c30342d3
tree3fb3a1fa4bcae8a9c194dc2685783ae16216cb78
parentee58cd8522fd270732d9a110d001ffe4ff963e0d
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
media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
media/libstagefright/codecs/m4v_h263/enc/SoftMPEG4Encoder.cpp