[ENG-828-FIX-2] Actually generate thumbnails (#1033)

damn binary operations
This commit is contained in:
jake 2023-06-27 11:55:43 +01:00 committed by GitHub
parent adb78402e0
commit 281b892197

View File

@ -104,7 +104,7 @@ impl MovieDecoder {
unsafe {
// This needs to remain at 100 or the app will force crash if it comes
// across a video with subtitles or any type of corruption.
if (*decoder.format_context).probe_score == AVPROBE_SCORE_MAX {
if (*decoder.format_context).probe_score != AVPROBE_SCORE_MAX {
return Err(ThumbnailerError::CorruptVideo);
}
}