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

@@ -3198,11 +3198,10 @@ static void write_uncompressed_header(AV1_COMP *cpi,
write_sync_code(wb);
write_bitdepth_colorspace_sampling(cm, wb);
write_frame_size(cm, wb);
if (frame_is_intra_only(cm))
aom_wb_write_bit(wb, cm->allow_screen_content_tools);
aom_wb_write_bit(wb, cm->allow_screen_content_tools);
} else {
if (!cm->show_frame) aom_wb_write_bit(wb, cm->intra_only);
if (cm->intra_only) aom_wb_write_bit(wb, cm->allow_screen_content_tools);
if (!cm->error_resilient_mode) {
if (cm->intra_only) {
aom_wb_write_bit(wb,