[FFmpeg-devel] [PATCH] vp9: set color range to MPEG for intraonly profile 0

James Zern jzern at google.com
Tue Aug 22 06:08:44 EEST 2017


On Sat, Aug 19, 2017 at 8:04 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> Hi,
>
> On Fri, Aug 18, 2017 at 11:31 PM, James Zern <jzern at google.com> wrote:
>>
>> this is undocumented in the vp9 bitstream and decoding specification
>> doc, but matches libvpx
>>
>> Signed-off-by: James Zern <jzern at google.com>
>> ---
>>  libavcodec/vp9.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
>> index 7d8aced8c8..94430db9a3 100644
>> --- a/libavcodec/vp9.c
>> +++ b/libavcodec/vp9.c
>> @@ -459,7 +459,7 @@ static int decode_frame_header(AVCodecContext *avctx,
>>                  s->bytesperpixel = 1;
>>                  s->pix_fmt = AV_PIX_FMT_YUV420P;
>>                  avctx->colorspace = AVCOL_SPC_BT470BG;
>> -                avctx->color_range = AVCOL_RANGE_JPEG;
>> +                avctx->color_range = AVCOL_RANGE_MPEG;
>
>
> OK.
>

applied. thanks.


More information about the ffmpeg-devel mailing list