this is undocumented in the vp9 bitstream and decoding specification doc, but matches libvpx
Unified · Split
| @@ -459,7 +459,7 @@ static int decode_frame_header(AVCodecContext *avctx, · 458 unmodified lines | |||
| 459 | s->bytesperpixel = 1; | 459 | s->bytesperpixel = 1; |
| 460 | s->pix_fmt = AV_PIX_FMT_YUV420P; | 460 | s->pix_fmt = AV_PIX_FMT_YUV420P; |
| 461 | avctx->colorspace = AVCOL_SPC_BT470BG; | 461 | avctx->colorspace = AVCOL_SPC_BT470BG; |
| 462 | avctx->color_range = AVCOL_RANGE_JPEG; | 462 | avctx->color_range = AVCOL_RANGE_MPEG; |
| 463 | } | 463 | } |
| 464 | s->s.h.refreshrefmask = get_bits(&s->gb, 8); | 464 | s->s.h.refreshrefmask = get_bits(&s->gb, 8); |
| 465 | w = get_bits(&s->gb, 16) + 1; | 465 | w = get_bits(&s->gb, 16) + 1; |