---
libavcodec/dirac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/dirac.c b/libavcodec/dirac.c
index f0fb85d..7330def 100644
--- a/libavcodec/dirac.c
+++ b/libavcodec/dirac.c
@@ -237,6 +237,7 @@ static int parse_source_parameters(AVCodecContext *avctx,
GetBitContext *gb,
av_log(avctx, AV_LOG_WARNING, "Bitdepth greater than 8");
avctx->pix_fmt = dirac_pix_fmt[!luma_offset][source->chroma_format];
+ avctx->color_range = luma_offset ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
/* [DIRAC_STD] 10.3.9 Colour specification. colour_spec(video_params) */
if (get_bits1(gb)) { /* [DIRAC_STD] custom_colour_spec_flag */
--
1.8.3.4 (Apple Git-47)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel