Catch MediaCodecException in extractThumbnails for configuration crash.

This commit is contained in:
Alex Hart
2021-06-21 14:18:52 -03:00
parent 97b3d36433
commit 3a151b30ac

View File

@@ -97,7 +97,7 @@ final class VideoThumbnailsExtractor {
doExtract(extractor, decoder, outputSurface, outputWidthRotated, outputHeightRotated, duration, thumbnailCount, callback);
}
} catch (IOException | TranscodingException e) {
} catch (IOException | TranscodingException | MediaCodec.CodecException e) {
Log.w(TAG, e);
callback.failed();
} finally {