Skip to content

Commit

Permalink
gpl: use empty() instead of !size() in mbff
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <[email protected]>
  • Loading branch information
maliberty committed Jan 3, 2025
1 parent cdc9bec commit 535d323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpl/src/mbff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2277,7 +2277,7 @@ void MBFF::ReadLibs()
"Found tray {} mask: {}",
master->getName(),
array_mask.to_string());
if (!static_cast<int>(best_master_[array_mask].size())) {
if (best_master_[array_mask].empty()) {
best_master_[array_mask].resize(num_sizes_, nullptr);
tray_area_[array_mask].resize(num_sizes_,
std::numeric_limits<float>::max());
Expand Down

0 comments on commit 535d323

Please sign in to comment.