]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/av1_parser: don't set AVCodecContext pixel format
authorJames Almer <jamrial@gmail.com>
Wed, 9 Sep 2020 18:22:27 +0000 (15:22 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 12 Sep 2020 15:16:06 +0000 (12:16 -0300)
This is a property a decoder must set, not a parser.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/av1_parser.c

index ab23195e85951748558f5bb46b386f45be24599c..0b8af8aecf56f492ad1906abcb98337b20e76533 100644 (file)
@@ -155,8 +155,6 @@ 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];