Send allow_screen_content flag for both key and intra only frames

BUG=webm:1311

Change-Id: I03c1043d17ed4e4ea22002473779a9612884c6c6
This commit is contained in:
hui su
2016-10-12 11:36:24 -07:00
parent 732c188523
commit 24f7b07f2e
2 changed files with 4 additions and 6 deletions

View File

@@ -3224,11 +3224,10 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
memset(&cm->ref_frame_map, -1, sizeof(cm->ref_frame_map));
pbi->need_resync = 0;
}
if (frame_is_intra_only(cm))
cm->allow_screen_content_tools = aom_rb_read_bit(rb);
cm->allow_screen_content_tools = aom_rb_read_bit(rb);
} else {
cm->intra_only = cm->show_frame ? 0 : aom_rb_read_bit(rb);
if (cm->intra_only) cm->allow_screen_content_tools = aom_rb_read_bit(rb);
if (cm->error_resilient_mode) {
cm->reset_frame_context = RESET_FRAME_CONTEXT_ALL;
} else {