Bug: webm:1731
Unified · Split
| @@ -3836,7 +3836,7 @@ void vp9_get_next_group_of_picture(const VP9_COMP *cpi, int *first_is_key_frame, · 3835 unmodified lines | ||
| 3836 | 3836 | if (gop_command->use) { |
| 3837 | 3837 | *coding_frame_count = gop_command_coding_frame_count(gop_command); |
| 3838 | 3838 | *use_alt_ref = gop_command->use_alt_ref; |
| 3839 | − assert(*coding_frame_count < rc.frames_to_key); | |
| 3839 | + assert(gop_command->show_frame_count <= rc.frames_to_key); | |
| 3840 | 3840 | } else { |
| 3841 | 3841 | *coding_frame_count = vp9_get_gop_coding_frame_count( |
| 3842 | 3842 | &cpi->oxcf, &cpi->twopass, &cpi->frame_info, &rc, *first_show_idx, |
| @@ -1009,8 +1009,7 @@ T *GetVectorData(const std::vector<T> &v) { · 1008 unmodified lines | ||
| 1009 | 1009 | static GOP_COMMAND GetGopCommand(const std::vector<int> &gop_map, |
| 1010 | 1010 | int start_show_index) { |
| 1011 | 1011 | GOP_COMMAND gop_command; |
| 1012 | − if (gop_map.size() > 0) { | |
| 1013 | − assert(static_cast<size_t>(start_show_index) < gop_map.size()); | |
| 1012 | + if (static_cast<size_t>(start_show_index) < gop_map.size()) { | |
| 1014 | 1013 | assert((gop_map[start_show_index] & kGopMapFlagStart) != 0); |
| 1015 | 1014 | int end_show_index = start_show_index + 1; |
| 1016 | 1015 | // gop_map[end_show_index] & kGopMapFlagStart == 0 means this is |