[FFmpeg-devel] [PATCH] lavc/hevc_parser: remove repeated profile/level settings
Linjie Fu
linjie.justin.fu at gmail.com
Sat Jan 30 08:37:14 EET 2021
Since avctx->profile/level would be set in export_stream_params()
in set_sps(), identical codes here seem to be redundant.
Signed-off-by: Linjie Fu <linjie.justin.fu at gmail.com>
---
libavcodec/hevc_parser.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index 463d352055..0eb7fb074c 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -95,8 +95,6 @@ static int hevc_parse_slice_header(AVCodecParserContext *s, H2645NAL *nal,
s->width = ps->sps->width - ow->left_offset - ow->right_offset;
s->height = ps->sps->height - ow->top_offset - ow->bottom_offset;
s->format = ps->sps->pix_fmt;
- avctx->profile = ps->sps->ptl.general_ptl.profile_idc;
- avctx->level = ps->sps->ptl.general_ptl.level_idc;
if (ps->vps->vps_timing_info_present_flag) {
num = ps->vps->vps_num_units_in_tick;
--
2.25.1
More information about the ffmpeg-devel
mailing list