From 62b44efaa46e7c0873745a365306d77951e57dbd Mon Sep 17 00:00:00 2001 From: Miika Metsoila Date: Mon, 28 May 2018 11:31:05 +0300 Subject: [PATCH] Write the encoding tier (main/high) into the bitstream --- src/encoder_state-bitstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoder_state-bitstream.c b/src/encoder_state-bitstream.c index 05458500..9c90be5c 100644 --- a/src/encoder_state-bitstream.c +++ b/src/encoder_state-bitstream.c @@ -60,7 +60,7 @@ static void encoder_state_write_bitstream_PTL(bitstream_t *stream, // PTL // Profile Tier WRITE_U(stream, 0, 2, "general_profile_space"); - WRITE_U(stream, 0, 1, "general_tier_flag"); + WRITE_U(stream, state->encoder_control->cfg.high_tier, 1, "general_tier_flag"); // Main Profile == 1, Main 10 profile == 2 WRITE_U(stream, (state->encoder_control->bitdepth == 8)?1:2, 5, "general_profile_idc"); /* Compatibility flags should be set at general_profile_idc