summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-10-20 15:57:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-10-20 15:57:21 +0000
commit9897e1c27c664b45b81e60a277df3e8186e03c4d (patch)
tree8a3479f643eb31775543c37eaaf7c77cab59165b
parentbafadaafbbec3bef243e6c95391881c8d5cd0eb8 (diff)
parent2a388b53f2e6f728127e800032712b3dbe3295ec (diff)
downloadlibvpx-9897e1c27c664b45b81e60a277df3e8186e03c4d.tar.gz
Merge "vp10: write colorspace info for profile 0 intraonly frames."
-rw-r--r--vp10/decoder/decodeframe.c4
-rw-r--r--vp10/encoder/bitstream.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/vp10/decoder/decodeframe.c b/vp10/decoder/decodeframe.c
index 2c3f357ea..c3ab3d2bc 100644
--- a/vp10/decoder/decodeframe.c
+++ b/vp10/decoder/decodeframe.c
@@ -1989,6 +1989,9 @@ static size_t read_uncompressed_header(VP10Decoder *pbi,
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 @@ static size_t read_uncompressed_header(VP10Decoder *pbi,
cm->use_highbitdepth = 0;
#endif
}
+#endif
pbi->refresh_frame_flags = vpx_rb_read_literal(rb, REF_FRAMES);
setup_frame_size(cm, rb);
diff --git a/vp10/encoder/bitstream.c b/vp10/encoder/bitstream.c
index ea3d05e32..adc05cce2 100644
--- a/vp10/encoder/bitstream.c
+++ b/vp10/encoder/bitstream.c
@@ -1284,10 +1284,14 @@ static void write_uncompressed_header(VP10_COMP *cpi,
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);