ref: ee77a1a5891f8179f3313d55eea9d9e2ac666bd6
parent: 2e3ed02c6d548eb6e022f9ac8b77ab5bbfaab4a2
author: James Zern <[email protected]>
date: Thu Mar 6 16:12:47 EST 2014
vp8cx_set_ref: fix variable assignment assign vpx_ref_frame_t members explicitly avoiding incompatibility in visual studio builds Change-Id: I22df4c5ebb772d65b4d72f22949fbde53543d7ec
--- a/examples/vp8cx_set_ref.c
+++ b/examples/vp8cx_set_ref.c
@@ -162,7 +162,9 @@
while (vpx_img_read(&raw, infile)) {
if (frame_count + 1 == update_frame_num) {
- vpx_ref_frame_t ref = {VP8_LAST_FRAME, raw};
+ vpx_ref_frame_t ref;
+ ref.frame_type = VP8_LAST_FRAME;
+ ref.img = raw;
if (vpx_codec_control(&codec, VP8_SET_REFERENCE, &ref))
die_codec(&codec, "Failed to set reference frame");
}