This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 1d36c4d8ae11242b4b090f6381841545000ff8de
Author:     Leo Izen <[email protected]>
AuthorDate: Sat Apr 4 11:43:45 2026 -0400
Commit:     Leo Izen <[email protected]>
CommitDate: Fri May 1 07:40:24 2026 -0400

    avcodec/exif.c: reset ifd->size when freeing ifd->entries
    
    If we free ifd->entries then we need to set ifd->size to 0 so another
    call to av_fast_realloc doesn't get confused.
    
    Signed-off-by: Leo Izen <[email protected]>
---
 libavcodec/exif.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/exif.c b/libavcodec/exif.c
index c8e41bc99f..bbc37e134c 100644
--- a/libavcodec/exif.c
+++ b/libavcodec/exif.c
@@ -1274,8 +1274,10 @@ static int exif_remove_entry(void *logctx, 
AVExifMetadata *ifd, uint16_t id, int
     exif_free_entry(&ifd->entries[index]);
 
     if (index == --ifd->count) {
-        if (!index)
+        if (!index) {
             av_freep(&ifd->entries);
+            ifd->size = 0;
+        }
         return 1;
     }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to