OSDN Git Service

Check NAL size before looking inside
authorRay Essick <essick@google.com>
Tue, 6 Feb 2018 19:25:31 +0000 (11:25 -0800)
committerRay Essick <essick@google.com>
Tue, 6 Feb 2018 23:56:56 +0000 (15:56 -0800)
commite0c020969d88891b0b71bb938778e9ca762e8035
treeef765dc8a5d34d9939c3b1351edfa877df8940fb
parent323f6f51a67b771621633520d62599510665ebde
Check NAL size before looking inside

Add a check to ensure we have a non-zero size for a NAL while
parsing before we crack said NAL open to see what type it is.

Bug: 72117051
Test: compilation
Change-Id: Iaa3ebb2daae5d9225060a11e9adbb6757a168656
Merged-In: I607c67a320b33b991476db30d78223cf4386c0e8
media/libstagefright/avc_utils.cpp