[FFmpeg-cvslog] avdevice: Give names to anonymously typedeffed structs
Diego Biurrun
git at videolan.org
Fri Jul 18 21:53:54 CEST 2014
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jul 17 08:51:27 2014 -0700| [c0de9159a7ba5707aa0a5c2bc73ae78b7b87ec46] | committer: Diego Biurrun
avdevice: Give names to anonymously typedeffed structs
Anonymous structs can cause trouble in header files, so try to
avoid them altogether as a matter of good style.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0de9159a7ba5707aa0a5c2bc73ae78b7b87ec46
---
libavdevice/bktr.c | 2 +-
libavdevice/fbdev.c | 2 +-
libavdevice/jack_audio.c | 2 +-
libavdevice/oss_audio.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index 06f4d86..695e13f 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -51,7 +51,7 @@
#include <signal.h>
#include <stdint.h>
-typedef struct {
+typedef struct VideoData {
AVClass *class;
int video_fd;
int tuner_fd;
diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index 22c53a3..34e09f9 100644
--- a/libavdevice/fbdev.c
+++ b/libavdevice/fbdev.c
@@ -76,7 +76,7 @@ static enum AVPixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *v
return AV_PIX_FMT_NONE;
}
-typedef struct {
+typedef struct FBDevContext {
AVClass *class; ///< class for private options
int frame_size; ///< size in bytes of a grabbed frame
AVRational framerate_q; ///< framerate
diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c
index c261514..8ce3321 100644
--- a/libavdevice/jack_audio.c
+++ b/libavdevice/jack_audio.c
@@ -38,7 +38,7 @@
*/
#define FIFO_PACKETS_NUM 16
-typedef struct {
+typedef struct JackData {
AVClass *class;
jack_client_t * client;
int activated;
diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c
index f1cc91f..95f73fb 100644
--- a/libavdevice/oss_audio.c
+++ b/libavdevice/oss_audio.c
@@ -44,7 +44,7 @@
#define AUDIO_BLOCK_SIZE 4096
-typedef struct {
+typedef struct AudioData {
AVClass *class;
int fd;
int sample_rate;
More information about the ffmpeg-cvslog
mailing list