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

Git pushed a commit to branch master
in repository ffmpeg.

commit d4cf7cf1cfd7646945424653f3425501bcfc3fca
Author:     Marvin Scholz <[email protected]>
AuthorDate: Tue Apr 21 23:41:05 2026 +0200
Commit:     Timo Rothenpieler <[email protected]>
CommitDate: Wed Apr 22 12:33:26 2026 +0000

    lavfi: vf_drawtext: properly propagate errors
    
    Do not ignore errors from draw_text().
---
 libavfilter/vf_drawtext.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 70f2209c8e..005e150de7 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1889,7 +1889,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame 
*frame)
             s->x = bbox->x;
             s->y = bbox->y - s->fontsize;
         }
-        draw_text(ctx, frame);
+        ret = draw_text(ctx, frame);
+        if (ret < 0) {
+            av_frame_free(&frame);
+            return ret;
+        }
     }
 
     return ff_filter_frame(outlink, frame);

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

Reply via email to