]> git.sesse.net Git - nageru/commitdiff
Make output full-range, which seems to fix the issues with (at least) MPlayer/VLC...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Nov 2015 14:53:11 +0000 (15:53 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Nov 2015 14:53:11 +0000 (15:53 +0100)
h264encode.cpp
httpd.cpp
theme.cpp

index d63fe896e5efebfaf717e368226fca20c7a5c6c5..eb6faf3c4ec20a4c81fdde303c75b48dfc068761 100644 (file)
@@ -343,7 +343,7 @@ static void sps_rbsp(bitstream *bs)
         bitstream_put_ui(bs, 1, 1); /* video_signal_type_present_flag */
         {
             bitstream_put_ui(bs, 5, 3);  /* video_format (5 = Unspecified) */
-            bitstream_put_ui(bs, 0, 1);  /* video_full_range_flag */
+            bitstream_put_ui(bs, 1, 1);  /* video_full_range_flag */
             bitstream_put_ui(bs, 1, 1);  /* colour_description_present_flag */
             {
                 bitstream_put_ui(bs, 1, 8);  /* colour_primaries (1 = BT.709) */
index de0af8e99489133f399fa8ae816ac5f8c1aa6e25..3beff80e53dae05614868104f7f9ad3ad7b5ef25 100644 (file)
--- a/httpd.cpp
+++ b/httpd.cpp
@@ -96,7 +96,7 @@ HTTPD::Mux::Mux(AVFormatContext *avctx, int width, int height)
        avstream_video->codec->color_primaries = AVCOL_PRI_BT709;  // RGB colorspace (inout_format.color_space).
        avstream_video->codec->color_trc = AVCOL_TRC_BT709;  // Gamma curve (inout_format.gamma_curve).
        avstream_video->codec->colorspace = AVCOL_SPC_BT709;  // YUV colorspace (output_ycbcr_format.luma_coefficients).
-       avstream_video->codec->color_range = AVCOL_RANGE_MPEG;  // Full vs. limited range (output_ycbcr_format.full_range).
+       avstream_video->codec->color_range = AVCOL_RANGE_JPEG;  // Full vs. limited range (output_ycbcr_format.full_range).
        avstream_video->codec->chroma_sample_location = AVCHROMA_LOC_LEFT;  // Chroma sample location. See chroma_offset_0[] in Mixer::subsample_chroma().
        avstream_video->codec->field_order = AV_FIELD_PROGRESSIVE;
 
index 56d5f84553c5d00bcbb0406c6548ec703fecd059..5573c5562c0abce6cb651cfa1fb56690fa86f760 100644 (file)
--- a/theme.cpp
+++ b/theme.cpp
@@ -136,7 +136,7 @@ int EffectChain_finalize(lua_State* L)
                output_ycbcr_format.chroma_subsampling_x = 1;
                output_ycbcr_format.chroma_subsampling_y = 1;
                output_ycbcr_format.luma_coefficients = YCBCR_REC_709;
-               output_ycbcr_format.full_range = false;
+               output_ycbcr_format.full_range = true;
                output_ycbcr_format.num_levels = 256;
 
                chain->add_ycbcr_output(inout_format, OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED, output_ycbcr_format, YCBCR_OUTPUT_SPLIT_Y_AND_CBCR);