libstagefright: Fixed error while scanning media files.