private static int checkValidFrame(int frame) {
      if (frame < 0) {
        throw new IllegalArgumentException("Requested frame must be non-negative");
      }
      return frame;
    }
An {@link BitmapDecoder} that can decode a thumbnail frame
{@link Bitmap} from a {@link ParcelFileDescriptor} containing a video.

@see MediaMetadataRetriever
core/src/main/java/com/bumptech/glide/load/resource/bitmap/VideoBitmapDecoder.java