ref: 2a388b53f2e6f728127e800032712b3dbe3295ec
parent: 60c58b52846ee9fa2672f7843ce7b22bc46a699f
author: Ronald S. Bultje <[email protected]>
date: Mon Oct 19 08:18:57 EDT 2015
vp10: write colorspace info for profile 0 intraonly frames. See issue 1087. Change-Id: I231f6f12f870d0a56391daf1673536048418b207
--- a/vp10/decoder/decodeframe.c
+++ b/vp10/decoder/decodeframe.c
@@ -1989,6 +1989,9 @@
if (!vp10_read_sync_code(rb))
vpx_internal_error(&cm->error, VPX_CODEC_UNSUP_BITSTREAM,
"Invalid frame sync code");
+#if CONFIG_MISC_FIXES
+ read_bitdepth_colorspace_sampling(cm, rb);
+#else
if (cm->profile > PROFILE_0) {
read_bitdepth_colorspace_sampling(cm, rb);
} else {
@@ -2004,6 +2007,7 @@
cm->use_highbitdepth = 0;
#endif
}
+#endif
pbi->refresh_frame_flags = vpx_rb_read_literal(rb, REF_FRAMES);
setup_frame_size(cm, rb);
--- a/vp10/encoder/bitstream.c
+++ b/vp10/encoder/bitstream.c
@@ -1284,10 +1284,14 @@
if (cm->intra_only) {
write_sync_code(wb);
+#if CONFIG_MISC_FIXES
+ write_bitdepth_colorspace_sampling(cm, wb);
+#else
// Note for profile 0, 420 8bpp is assumed.
if (cm->profile > PROFILE_0) {
write_bitdepth_colorspace_sampling(cm, wb);
}
+#endif
vpx_wb_write_literal(wb, get_refresh_mask(cpi), REF_FRAMES);
write_frame_size(cm, wb);