diff mbox series

[FFmpeg-devel,5/5] avutil/log: Reorder elements of AVClass to make it smaller

Message ID AM7PR03MB66609E8DC8F3CB0DFF80B3DC8FF19@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 81b61869207782d71b55d1a262dab340fc2d94cf
Headers show
Series [FFmpeg-devel,1/4] avformat/aviobuf: Avoid allocation when using dynamic buffer | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make warning Make failed

Commit Message

Andreas Rheinhardt Aug. 4, 2021, 4:32 p.m. UTC
Putting child_next besides child_class_iterate is actually nicer.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavutil/log.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/libavutil/log.h b/libavutil/log.h
index 8727c38afc..99625af538 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -106,11 +106,6 @@  typedef struct AVClass {
      */
     int parent_log_context_offset;
 
-    /**
-     * Return next AVOptions-enabled child or NULL
-     */
-    void* (*child_next)(void *obj, void *prev);
-
     /**
      * Category used for visualization (like color)
      * This is only set if the category is equal for all objects using this class.
@@ -130,6 +125,11 @@  typedef struct AVClass {
      */
     int (*query_ranges)(struct AVOptionRanges **, void *obj, const char *key, int flags);
 
+    /**
+     * Return next AVOptions-enabled child or NULL
+     */
+    void* (*child_next)(void *obj, void *prev);
+
     /**
      * Iterate over the AVClasses corresponding to potential AVOptions-enabled
      * children.