Commit 3b95c504 authored by Pavel Frolov's avatar Pavel Frolov
Browse files

Signal use_reference_buffer for intra_only frames

BUG=aomedia:851

Change-Id: Ib188f4b640a58c47147cda977a589e527f765a54
parent 856b8782
...@@ -4715,7 +4715,7 @@ static size_t read_uncompressed_header(AV1Decoder *pbi, ...@@ -4715,7 +4715,7 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
#endif #endif
cm->error_resilient_mode = aom_rb_read_bit(rb); cm->error_resilient_mode = aom_rb_read_bit(rb);
#if CONFIG_REFERENCE_BUFFER #if CONFIG_REFERENCE_BUFFER
if (cm->frame_type == KEY_FRAME) { if (frame_is_intra_only(cm)) {
cm->use_reference_buffer = aom_rb_read_bit(rb); cm->use_reference_buffer = aom_rb_read_bit(rb);
#if !CONFIG_OBU #if !CONFIG_OBU
read_sequence_header(&pbi->seq_params); read_sequence_header(&pbi->seq_params);
......
...@@ -4578,7 +4578,7 @@ static void write_uncompressed_header_frame(AV1_COMP *cpi, ...@@ -4578,7 +4578,7 @@ static void write_uncompressed_header_frame(AV1_COMP *cpi,
if (!cm->show_frame) aom_wb_write_bit(wb, cm->intra_only); if (!cm->show_frame) aom_wb_write_bit(wb, cm->intra_only);
aom_wb_write_bit(wb, cm->error_resilient_mode); aom_wb_write_bit(wb, cm->error_resilient_mode);
if (cm->frame_type == KEY_FRAME) { if (frame_is_intra_only(cm)) {
#if CONFIG_REFERENCE_BUFFER #if CONFIG_REFERENCE_BUFFER
aom_wb_write_bit(wb, cm->use_reference_buffer); aom_wb_write_bit(wb, cm->use_reference_buffer);
if (cm->use_reference_buffer) { if (cm->use_reference_buffer) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment