brarcher / video-transcoder

Android app for video and audio transcoder, based on FFmpeg
GNU General Public License v3.0
481 stars 57 forks source link

Prevent NPE if media details cannot be read #126

Closed brarcher closed 5 years ago

brarcher commented 5 years ago

A test run on Google's Firebase platform ended up selecting a file that was not a media file, and hit a NPE when ffprobe did not return json data.

This commit checks that the root json node exists before attempting to use it.