Catch IAE when video thumbnail extractor cannot instantiate a decoder.

This commit is contained in:
Alex Hart 2022-08-18 14:22:45 -03:00 committed by Cody Henthorne
parent 8ffad4cc6f
commit b4ae13fe8a

View file

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