OSDN Git Service

Apply input buffer validation also to AVC and MPEG4 encoders
authorDongwon Kang <dwkang@google.com>
Tue, 21 Nov 2017 01:55:24 +0000 (17:55 -0800)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 4 Jan 2018 19:30:45 +0000 (19:30 +0000)
commit158af2ed6d9d03ff24fe1d12ea6eb6a7bbcce383
tree101b1bee5d96bb4715133afbf6f2f6bbb05adebb
parent28e9a544ef076b5cadb30066b2e283017ad9e3b3
Apply input buffer validation also to AVC and MPEG4 encoders

Input buffer validation is existing only on VPX encoders. This patch
applies the checking also to the other sw video encoders.

Bug: 69065651 Bug: 27569635
Test: run poc with and without the patch.
Test: pass post submit media CTS tests after disabling hw encoders.

Merged-In: I1358df64352577fd6d41cd4bfec18be37c98fe6f
Change-Id: I1358df64352577fd6d41cd4bfec18be37c98fe6f
(cherry picked from commit fed57366c58aa69ad8f1df5191d6bf48e58d86a8)
media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp
media/libstagefright/codecs/m4v_h263/enc/SoftMPEG4Encoder.cpp
media/libstagefright/codecs/on2/enc/SoftVPXEncoder.cpp
media/libstagefright/omx/SoftVideoEncoderOMXComponent.cpp
media/libstagefright/omx/include/media/stagefright/omx/SoftVideoEncoderOMXComponent.h