Catch IAE when video thumbnail extractor cannot instantiate a decoder.

fork-5.53.8
Alex Hart 2022-08-18 14:22:45 -03:00 zatwierdzone przez Cody Henthorne
rodzic 8ffad4cc6f
commit b4ae13fe8a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -97,7 +97,7 @@ final class VideoThumbnailsExtractor {
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);
callback.failed();
} finally {