summaryrefslogtreecommitdiffstats
path: root/third_party/aom/examples/aom_cx_set_ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/examples/aom_cx_set_ref.c')
-rw-r--r--third_party/aom/examples/aom_cx_set_ref.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/aom/examples/aom_cx_set_ref.c b/third_party/aom/examples/aom_cx_set_ref.c
index ff24fa14a..456e81300 100644
--- a/third_party/aom/examples/aom_cx_set_ref.c
+++ b/third_party/aom/examples/aom_cx_set_ref.c
@@ -270,18 +270,18 @@ int main(int argc, char **argv) {
while (aom_img_read(&raw, infile)) {
if (limit && frame_in >= limit) break;
if (update_frame_num > 1 && frame_out + 1 == update_frame_num) {
- aom_ref_frame_t ref;
- ref.frame_type = AOM_LAST_FRAME;
+ av1_ref_frame_t ref;
+ ref.idx = 0;
ref.img = raw;
// Set reference frame in encoder.
- if (aom_codec_control(&ecodec, AOM_SET_REFERENCE, &ref))
+ if (aom_codec_control(&ecodec, AV1_SET_REFERENCE, &ref))
die_codec(&ecodec, "Failed to set reference frame");
printf(" <SET_REF>");
// If set_reference in decoder is commented out, the enc/dec mismatch
// would be seen.
if (test_decode) {
- if (aom_codec_control(&dcodec, AOM_SET_REFERENCE, &ref))
+ if (aom_codec_control(&dcodec, AV1_SET_REFERENCE, &ref))
die_codec(&dcodec, "Failed to set reference frame");
}
}