Skip to content

Commit

Permalink
Catch IAE when video thumbnail extractor cannot instantiate a decoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal authored and cody-signal committed Aug 18, 2022
1 parent 8ffad4c commit b4ae13f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -97,7 +97,7 @@ static void extractThumbnails(final @NonNull MediaInput input,

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 {
Expand Down

0 comments on commit b4ae13f

Please sign in to comment.