Skip to content

Commit ed93ed5

Browse files
committed
avfilter: don't anonymously typedef structs
Signed-off-by: Paul B Mahol <[email protected]>
1 parent 0fbc7a2 commit ed93ed5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+116
-116
lines changed

libavfilter/aeval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ enum var_name {
5353
VAR_VARS_NB
5454
};
5555

56-
typedef struct {
56+
typedef struct EvalContext {
5757
const AVClass *class;
5858
char *sample_rate_str;
5959
int sample_rate;

libavfilter/af_afade.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "avfilter.h"
3030
#include "internal.h"
3131

32-
typedef struct {
32+
typedef struct AudioFadeContext {
3333
const AVClass *class;
3434
int type;
3535
int curve, curve2;

libavfilter/af_amerge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#define SWR_CH_MAX 64
3939

40-
typedef struct {
40+
typedef struct AMergeContext {
4141
const AVClass *class;
4242
int nb_inputs;
4343
int route[SWR_CH_MAX]; /**< channels routing, see copy_samples */

libavfilter/af_apad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "audio.h"
3535
#include "internal.h"
3636

37-
typedef struct {
37+
typedef struct APadContext {
3838
const AVClass *class;
3939
int64_t next_pts;
4040

libavfilter/af_aresample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "audio.h"
3535
#include "internal.h"
3636

37-
typedef struct {
37+
typedef struct AResampleContext {
3838
const AVClass *class;
3939
int sample_rate_arg;
4040
double ratio;

libavfilter/af_asetnsamples.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "internal.h"
3434
#include "formats.h"
3535

36-
typedef struct {
36+
typedef struct ASNSContext {
3737
const AVClass *class;
3838
int nb_out_samples; ///< how many samples to output
3939
AVAudioFifo *fifo; ///< samples are queued here

libavfilter/af_asetrate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "avfilter.h"
2323
#include "internal.h"
2424

25-
typedef struct {
25+
typedef struct ASetRateContext {
2626
const AVClass *class;
2727
int sample_rate;
2828
int rescale_pts;

libavfilter/af_astats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ typedef struct ChannelStats {
4242
uint64_t nb_samples;
4343
} ChannelStats;
4444

45-
typedef struct {
45+
typedef struct AudioStatsContext {
4646
const AVClass *class;
4747
ChannelStats *chstats;
4848
int nb_channels;

libavfilter/af_atempo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/**
5454
* A fragment of audio waveform
5555
*/
56-
typedef struct {
56+
typedef struct AudioFragment {
5757
// index of the first sample of this fragment in the overall waveform;
5858
// 0: input sample position
5959
// 1: output sample position
@@ -84,7 +84,7 @@ typedef enum {
8484
/**
8585
* Filter state machine
8686
*/
87-
typedef struct {
87+
typedef struct ATempoContext {
8888
const AVClass *class;
8989

9090
// ring-buffer of input samples, necessary because some times

libavfilter/af_earwax.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static const int8_t filt[NUMTAPS] = {
7171
0, -5,
7272
4, 0};
7373

74-
typedef struct {
74+
typedef struct EarwaxContext {
7575
int16_t taps[NUMTAPS * 2];
7676
} EarwaxContext;
7777

0 commit comments

Comments
 (0)