ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Fri Jul 18 17:41:41 2025 -0300| [36b8c200fb788d2ea85403ec6c4f71c5e5131a41] | committer: James Almer
avformat/hevc: don't print parameter_set_id for SEI NALUs The field is unset for those. Fixes use of uninitialized variable errors under sanitizer. Signed-off-by: James Almer <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=36b8c200fb788d2ea85403ec6c4f71c5e5131a41 --- libavformat/hevc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/hevc.c b/libavformat/hevc.c index fc1fa8be74..4d73fda7db 100644 --- a/libavformat/hevc.c +++ b/libavformat/hevc.c @@ -1071,9 +1071,10 @@ static int hvcc_write(void *logctx, AVIOContext *pb, av_log(logctx, AV_LOG_TRACE, "nuh_layer_id[%u][%u]: %"PRIu8"\n", j, k, array->nal[k].nuh_layer_id); - av_log(logctx, AV_LOG_TRACE, - "parameter_set_id[%u][%u]: %"PRIu8"\n", - j, k, array->nal[k].parameter_set_id); + if (i <= PPS_INDEX) + av_log(logctx, AV_LOG_TRACE, + "parameter_set_id[%u][%u]: %"PRIu8"\n", + j, k, array->nal[k].parameter_set_id); av_log(logctx, AV_LOG_TRACE, "nalUnitLength[%u][%u]: %"PRIu16"\n", j, k, array->nal[k].nalUnitLength); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".