The frame counter was not being reset at the start of the first pass.
Unified · Split
| @@ -2128,6 +2128,7 @@ static void setup_pass(struct stream_state *stream, · 2127 unmodified lines | ||
| 2128 | 2128 | |
| 2129 | 2129 | stream->cx_time = 0; |
| 2130 | 2130 | stream->nbytes = 0; |
| 2131 | + stream->frames_out = 0; | |
| 2131 | 2132 | } |
| 2132 | 2133 | |
| 2133 | 2134 | |