The branch, master has been updated
via 635cb4543f1bb08b645740406077dad845d5d7d4 (commit)
from 8a34faa250fad7dc05aa9a554b4aaafd9e7425e7 (commit)
- Log -----------------------------------------------------------------
commit 635cb4543f1bb08b645740406077dad845d5d7d4
Author: Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Sep 24 04:34:47 2025 +0200
Commit: Andreas Rheinhardt <[email protected]>
CommitDate: Sat Sep 27 17:57:15 2025 +0200
avcodec/bsf/ahx_to_mp2: Don't output uninitialized data
Signed-off-by: Andreas Rheinhardt <[email protected]>
diff --git a/libavcodec/bsf/ahx_to_mp2.c b/libavcodec/bsf/ahx_to_mp2.c
index eae71fe5ee..8e30c5b1db 100644
--- a/libavcodec/bsf/ahx_to_mp2.c
+++ b/libavcodec/bsf/ahx_to_mp2.c
@@ -44,11 +44,13 @@ static int filter(AVBSFContext *ctx, AVPacket *pkt)
return ret;
if (pkt->size < 1044) {
+ int original_size = pkt->size;
ret = av_grow_packet(pkt, 1044-pkt->size);
if (ret < 0) {
av_packet_unref(pkt);
return ret;
}
+ memset(pkt->data + original_size, 0, 1044 - original_size);
}
return 0;
-----------------------------------------------------------------------
Summary of changes:
libavcodec/bsf/ahx_to_mp2.c | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]