[FFmpeg-cvslog] Don't anonymously typedef structs

Diego Biurrun git at videolan.org
Sat Feb 14 21:35:16 CET 2015


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Sep 22 11:02:13 2014 +0200| [bf704132a51f5d838365158331d4e535e1df4c8e] | committer: Diego Biurrun

Don't anonymously typedef structs

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf704132a51f5d838365158331d4e535e1df4c8e
---

 avprobe.c              |    4 ++--
 libavutil/file.c       |    2 +-
 libavutil/parseutils.c |    6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/avprobe.c b/avprobe.c
index 6198c05..926a781 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -84,14 +84,14 @@ typedef enum {
     OBJECT
 } PrintElementType;
 
-typedef struct {
+typedef struct PrintElement {
     const char *name;
     PrintElementType type;
     int64_t index;
     int64_t nb_elems;
 } PrintElement;
 
-typedef struct {
+typedef struct PrintContext {
     PrintElement *prefix;
     int level;
     void (*print_header)(void);
diff --git a/libavutil/file.c b/libavutil/file.c
index d2765b8..18a110a 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -35,7 +35,7 @@
 #include <windows.h>
 #endif
 
-typedef struct {
+typedef struct FileLogContext {
     const AVClass *class;
     int   log_offset;
     void *log_ctx;
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 1ca0086..4ae47ee 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -32,12 +32,12 @@
 #include "time_internal.h"
 #include "parseutils.h"
 
-typedef struct {
+typedef struct VideoSizeAbbr {
     const char *abbr;
     int width, height;
 } VideoSizeAbbr;
 
-typedef struct {
+typedef struct VideoRateAbbr {
     const char *abbr;
     AVRational rate;
 } VideoRateAbbr;
@@ -143,7 +143,7 @@ int av_parse_video_rate(AVRational *rate, const char *arg)
     return 0;
 }
 
-typedef struct {
+typedef struct ColorEntry {
     const char *name;            ///< a string representing the name of the color
     uint8_t     rgb_color[3];    ///< RGB values for the color
 } ColorEntry;



More information about the ffmpeg-cvslog mailing list