From: James Zern Date: Fri, 7 Mar 2014 05:12:47 +0000 (-0800) Subject: vp8cx_set_ref: fix variable assignment X-Git-Tag: v1.4.0~2126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee77a1a5891f8179f3313d55eea9d9e2ac666bd6;p=libvpx vp8cx_set_ref: fix variable assignment assign vpx_ref_frame_t members explicitly avoiding incompatibility in visual studio builds Change-Id: I22df4c5ebb772d65b4d72f22949fbde53543d7ec --- diff --git a/examples/vp8cx_set_ref.c b/examples/vp8cx_set_ref.c index 39ac8316f..9b6d11b28 100644 --- a/examples/vp8cx_set_ref.c +++ b/examples/vp8cx_set_ref.c @@ -162,7 +162,9 @@ int main(int argc, char **argv) { 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"); }