OSDN Git Service

libstagefright: httplive: Add NULL check for empty playlist
authorLeena Winterrowd <lenhardw@codeaurora.org>
Tue, 4 Nov 2014 02:56:39 +0000 (18:56 -0800)
committerLajos Molnar <lajos@google.com>
Thu, 29 Jan 2015 05:52:09 +0000 (21:52 -0800)
commit5cf91c5067a9c7ed3c138d4e56fb176b28f5dc3a
tree475dcb263d0e2ab0fca6c2310e521269806db3d9
parentf0d689934e70d3e5b3784265e890377db04c7c1d
libstagefright: httplive: Add NULL check for empty playlist

If the source playlist is empty, the playlist meta will be NULL.
Check for this case to avoid an invalid dereference. Also flag
playlists without the required EXT-X-TARGETDURATION tag as malformed.

Bug: 18821145
Change-Id: Idf74d890a89bbc6483a6d4060eb092dc7461be24
media/libstagefright/httplive/PlaylistFetcher.cpp