On Wed, 12 Mar 2014 15:30:41 +0100, Vittorio Giovara <[email protected]> wrote: > --- > 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;
color_range is already conditionally set in two places above, and you're unconditionally overwriting it here. That looks wrong. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
