summaryrefslogtreecommitdiff
path: root/libavcodec/av1_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/av1_parser.c')
-rw-r--r--libavcodec/av1_parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index c5bdc6b25f..036ab5e14e 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -171,6 +171,8 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
color->transfer_characteristics == AVCOL_TRC_IEC61966_2_1)
ctx->format = pix_fmts_rgb[color->high_bitdepth + color->twelve_bit];
+ avctx->pix_fmt = ctx->format;
+
avctx->profile = seq->seq_profile;
avctx->level = seq->seq_level_idx[0];