For show existing frames, set the variables
this_frame_target and projected_frame_size
correctly.
Change-Id: Id5f06eb4ac195f6b63c0199d9d761eaaaea79bbd
write_uncompressed_header(cpi, &wb);
// Skip the rest coding process if use show existing frame.
- if (cpi->common.show_existing_frame) return;
+ if (cpi->common.show_existing_frame) {
+ uncompressed_hdr_size = vpx_wb_bytes_written(&wb);
+ data += uncompressed_hdr_size;
+ *size = data - dest;
+ return;
+ }
saved_wb = wb;
vpx_wb_write_literal(&wb, 0, 16); // don't know in advance first part. size
: 0;
if (cm->show_existing_frame) {
+ cpi->rc.this_frame_target = 0;
if (is_psnr_calc_enabled(cpi)) set_raw_source_frame(cpi);
return 1;
}
#endif
if (cm->show_existing_frame) {
+ rc->this_frame_target = 0;
if (is_psnr_calc_enabled(cpi)) set_raw_source_frame(cpi);
return;
}