YV12_BUFFER_CONFIG *const buf = cm->frame_refs[i].buf;
width = buf->y_crop_width;
height = buf->y_crop_height;
+#if CONFIG_MISC_FIXES
+ cm->render_width = buf->render_width;
+ cm->render_height = buf->render_height;
+#endif
found = 1;
break;
}
}
- if (!found)
+ if (!found) {
vp10_read_frame_size(rb, &width, &height);
+#if CONFIG_MISC_FIXES
+ setup_render_size(cm, rb);
+#endif
+ }
if (width <= 0 || height <= 0)
vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
}
resize_context_buffers(cm, width, height);
+#if !CONFIG_MISC_FIXES
setup_render_size(cm, rb);
+#endif
lock_buffer_pool(pool);
if (vpx_realloc_frame_buffer(
if (cfg != NULL) {
found = cm->width == cfg->y_crop_width &&
cm->height == cfg->y_crop_height;
+#if CONFIG_MISC_FIXES
+ found &= cm->render_width == cfg->render_width &&
+ cm->render_height == cfg->render_height;
+#endif
}
vpx_wb_write_bit(wb, found);
if (found) {
if (!found) {
vpx_wb_write_literal(wb, cm->width - 1, 16);
vpx_wb_write_literal(wb, cm->height - 1, 16);
+
+#if CONFIG_MISC_FIXES
+ write_render_size(cm, wb);
+#endif
}
+#if !CONFIG_MISC_FIXES
write_render_size(cm, wb);
+#endif
}
static void write_sync_code(struct vpx_write_bit_buffer *wb) {