This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 9ea36321f9 avcodec/liboapvenc: Use av_freep() where appropriate
9ea36321f9 is described below
commit 9ea36321f94b123bf3efef05935fab7f004fcf80
Author: Andreas Rheinhardt <[email protected]>
AuthorDate: Thu Jun 18 16:53:27 2026 +0200
Commit: Andreas Rheinhardt <[email protected]>
CommitDate: Fri Jun 19 15:18:54 2026 +0200
avcodec/liboapvenc: Use av_freep() where appropriate
Reviewed-by: Kacper Michajłow <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
---
libavcodec/liboapvenc.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/libavcodec/liboapvenc.c b/libavcodec/liboapvenc.c
index 51b4343c05..22a8ac4890 100644
--- a/libavcodec/liboapvenc.c
+++ b/libavcodec/liboapvenc.c
@@ -628,12 +628,9 @@ static av_cold int liboapve_close(AVCodecContext *avctx)
ApvEncContext *apv = avctx->priv_data;
for (unsigned int i = 0; i < apv->nb_payloads; i++) {
- if (apv->payloads[i].data) {
- av_free(apv->payloads[i].data);
- apv->payloads[i].data = NULL;
- }
+ av_freep(&apv->payloads[i].data);
}
- av_free(apv->payloads);
+ av_freep(&apv->payloads);
for (int i = 0; i < apv->ifrms.num_frms; i++) {
if (apv->ifrms.frm[i].imgb != NULL)
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]