summaryrefslogtreecommitdiff
path: root/libavcodec/qdm2.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-09-22 11:01:31 +0200
committerDiego Biurrun <diego@biurrun.de>2015-02-14 10:13:49 -0800
commit7f9f771eac0d37a632e0ed9bd89961d57fcfb7e0 (patch)
tree5468ce1ec8288ea779ea3754620d6bddcf22e918 /libavcodec/qdm2.c
parentdaf8cf358a098a903d59adb6c0d0cc3262a8c93e (diff)
avcodec: Don't anonymously typedef structs
Diffstat (limited to 'libavcodec/qdm2.c')
-rw-r--r--libavcodec/qdm2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index 4718b34942..188358a04f 100644
--- a/libavcodec/qdm2.c
+++ b/libavcodec/qdm2.c
@@ -83,7 +83,7 @@ typedef int8_t sb_int8_array[2][30][64];
/**
* Subpacket
*/
-typedef struct {
+typedef struct QDM2SubPacket {
int type; ///< subpacket type
unsigned int size; ///< subpacket size
const uint8_t *data; ///< pointer to subpacket data (points to input data buffer, it's not a private copy)
@@ -97,12 +97,12 @@ typedef struct QDM2SubPNode {
struct QDM2SubPNode *next; ///< pointer to next packet in the list, NULL if leaf node
} QDM2SubPNode;
-typedef struct {
+typedef struct QDM2Complex {
float re;
float im;
} QDM2Complex;
-typedef struct {
+typedef struct FFTTone {
float level;
QDM2Complex *complex;
const float *table;
@@ -113,7 +113,7 @@ typedef struct {
short cutoff;
} FFTTone;
-typedef struct {
+typedef struct FFTCoefficient {
int16_t sub_packet;
uint8_t channel;
int16_t offset;
@@ -121,14 +121,14 @@ typedef struct {
uint8_t phase;
} FFTCoefficient;
-typedef struct {
+typedef struct QDM2FFT {
DECLARE_ALIGNED(32, QDM2Complex, complex)[MPA_MAX_CHANNELS][256];
} QDM2FFT;
/**
* QDM2 decoder context
*/
-typedef struct {
+typedef struct QDM2Context {
/// Parameters from codec header, do not change during playback
int nb_channels; ///< number of channels
int channels; ///< number of channels