History

simple_encode: fix some -Wsign-compare warnings

James Zern committed 5 years ago

Commit 5d678fe1 parent 71d09c31 file · +3 −2Browse files

Unified · Split

vp9/simple_encode.cc+3−2
@@ -1248,7 +1248,7 @@ static int GetCodingFrameNumFromGopMap(const std::vector<int> &gop_map) { · 1247 unmodified lines
12481248 start_show_index += gop_command.show_frame_count;
12491249 coding_frame_count += gop_command_coding_frame_count(&gop_command);
12501250 }
1251− assert(start_show_index == gop_map.size());
1251+ assert(static_cast<size_t>(start_show_index) == gop_map.size());
12521252 return coding_frame_count;
12531253 }
12541254
@@ -1279,7 +1279,8 @@ int SimpleEncode::GetCodingFrameNum() const { · 24 unmodified lines
12791279
12801280 std::vector<int> SimpleEncode::ComputeKeyFrameMap() const {
12811281 // The last entry of first_pass_stats is the overall stats.
1282− assert(impl_ptr_->first_pass_stats.size() == num_frames_ + 1);
1282+ assert(impl_ptr_->first_pass_stats.size() ==
1283+ static_cast<size_t>(num_frames_) + 1);
12831284 vpx_rational_t frame_rate =
12841285 make_vpx_rational(frame_rate_num_, frame_rate_den_);
12851286 const VP9EncoderConfig oxcf = GetEncodeConfig(

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t