[FFmpeg-cvslog] avcodec/av1_parser: don't set AVCodecContext pixel format

James Almer git at videolan.org
Sat Sep 12 19:51:08 EEST 2020


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Sep  9 15:22:27 2020 -0300| [bab3c32351e42f9f7f64947102f871903b2e635c] | committer: James Almer

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bab3c32351e42f9f7f64947102f871903b2e635c
---

 libavcodec/av1_parser.c | 2 --
 1 file changed, 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];
 



More information about the ffmpeg-cvslog mailing list