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 eb0bfa852e avutil/opt: reformat set_string_binary
eb0bfa852e is described below

commit eb0bfa852e7b9c524960300607ba2c4617060a9b
Author:     Leo Izen <[email protected]>
AuthorDate: Sat Aug 15 10:28:04 2026 -0400
Commit:     Leo Izen <[email protected]>
CommitDate: Fri Aug 21 14:13:46 2026 -0400

    avutil/opt: reformat set_string_binary
    
    Fix the code formatting in libavutil/opt.c's static function
    set_string_binary after bd68a6130495fe17bf33e0a9ddc053baae18c81f.
    
    No functional changes.
    
    Signed-off-by: Leo Izen <[email protected]>
---
 libavutil/opt.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index a4709740bd..6fa1ec9929 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -369,8 +369,8 @@ static int set_string_binary(void *obj, const AVOption *o, 
const char *val, uint
 
     if (dst) {
         lendst = (int *)(dst + 1);
-    av_freep(dst);
-    *lendst = 0;
+        av_freep(dst);
+        *lendst = 0;
     }
 
     if (!val || !(len = strlen(val)))
@@ -392,11 +392,13 @@ static int set_string_binary(void *obj, const AVOption 
*o, const char *val, uint
         }
         *ptr++ = (a << 4) | b;
     }
+
     if (dst) {
-    *dst    = bin;
-    *lendst = len;
-    } else
+        *dst    = bin;
+        *lendst = len;
+    } else {
         av_free(bin);
+    }
 
     return 0;
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to