| @@ -360,7 +360,7 @@ static int FUNC(set_frame_refs)(CodedBitstreamContext *ctx, RWContext *rw, · 359 unmodified lines |
| 360 | 360 | int i, j; |
| 361 | 361 | |
| 362 | 362 | for (i = 0; i < AV1_REFS_PER_FRAME; i++) |
| 363 | | − ref_frame_idx[i] = -1; |
| 363 | + ref_frame_idx[i] = AV1_REF_FRAME_NONE; |
| 364 | 364 | ref_frame_idx[AV1_REF_FRAME_LAST - AV1_REF_FRAME_LAST] = current->last_frame_idx; |
| 365 | 365 | ref_frame_idx[AV1_REF_FRAME_GOLDEN - AV1_REF_FRAME_LAST] = current->golden_frame_idx; |
| 366 | 366 | |
| @@ -378,7 +378,7 @@ static int FUNC(set_frame_refs)(CodedBitstreamContext *ctx, RWContext *rw, · 11 unmodified lines |
| 378 | 378 | latest_order_hint = shifted_order_hints[current->last_frame_idx]; |
| 379 | 379 | earliest_order_hint = shifted_order_hints[current->golden_frame_idx]; |
| 380 | 380 | |
| 381 | | − ref = -1; |
| 381 | + ref = AV1_REF_FRAME_NONE; |
| 382 | 382 | for (i = 0; i < AV1_NUM_REF_FRAMES; i++) { |
| 383 | 383 | int hint = shifted_order_hints[i]; |
| 384 | 384 | if (!used_frame[i] && hint >= cur_frame_hint && |
| @@ -392,7 +392,7 @@ static int FUNC(set_frame_refs)(CodedBitstreamContext *ctx, RWContext *rw, · 7 unmodified lines |
| 392 | 392 | used_frame[ref] = 1; |
| 393 | 393 | } |
| 394 | 394 | |
| 395 | | − ref = -1; |
| 395 | + ref = AV1_REF_FRAME_NONE; |
| 396 | 396 | for (i = 0; i < AV1_NUM_REF_FRAMES; i++) { |
| 397 | 397 | int hint = shifted_order_hints[i]; |
| 398 | 398 | if (!used_frame[i] && hint >= cur_frame_hint && |
| @@ -406,7 +406,7 @@ static int FUNC(set_frame_refs)(CodedBitstreamContext *ctx, RWContext *rw, · 7 unmodified lines |
| 406 | 406 | used_frame[ref] = 1; |
| 407 | 407 | } |
| 408 | 408 | |
| 409 | | − ref = -1; |
| 409 | + ref = AV1_REF_FRAME_NONE; |
| 410 | 410 | for (i = 0; i < AV1_NUM_REF_FRAMES; i++) { |
| 411 | 411 | int hint = shifted_order_hints[i]; |
| 412 | 412 | if (!used_frame[i] && hint >= cur_frame_hint && |
| @@ -423,7 +423,7 @@ static int FUNC(set_frame_refs)(CodedBitstreamContext *ctx, RWContext *rw, · 10 unmodified lines |
| 423 | 423 | for (i = 0; i < AV1_REFS_PER_FRAME - 2; i++) { |
| 424 | 424 | int ref_frame = ref_frame_list[i]; |
| 425 | 425 | if (ref_frame_idx[ref_frame - AV1_REF_FRAME_LAST] < 0 ) { |
| 426 | | − ref = -1; |
| 426 | + ref = AV1_REF_FRAME_NONE; |
| 427 | 427 | for (j = 0; j < AV1_NUM_REF_FRAMES; j++) { |
| 428 | 428 | int hint = shifted_order_hints[j]; |
| 429 | 429 | if (!used_frame[j] && hint < cur_frame_hint && |
| @@ -439,7 +439,7 @@ static int FUNC(set_frame_refs)(CodedBitstreamContext *ctx, RWContext *rw, · 9 unmodified lines |
| 439 | 439 | } |
| 440 | 440 | } |
| 441 | 441 | |
| 442 | | − ref = -1; |
| 442 | + ref = AV1_REF_FRAME_NONE; |
| 443 | 443 | for (i = 0; i < AV1_NUM_REF_FRAMES; i++) { |
| 444 | 444 | int hint = shifted_order_hints[i]; |
| 445 | 445 | if (ref < 0 || hint < earliest_order_hint) { |