aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-09-09 15:22:27 -0300
committerJames Almer <jamrial@gmail.com>2020-09-12 12:16:06 -0300
commitbab3c32351e42f9f7f64947102f871903b2e635c (patch)
treed347f1711e599d5079dfc18804f8dd26ce892226
parent2b9f39689ab19c68ff37b5a4ac71e8fb7f58c487 (diff)
downloadffmpeg-bab3c32351e42f9f7f64947102f871903b2e635c.tar.gz
avcodec/av1_parser: don't set AVCodecContext pixel format
This is a property a decoder must set, not a parser. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/av1_parser.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index ab23195e85..0b8af8aecf 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -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];