comparison alac.c @ 6633:f1674aac3a1a libavcodec

Remove unneeded variables from context
author vitor
date Thu, 17 Apr 2008 19:45:14 +0000
parents 4aa644a88500
children 981e2f43ea36
comparison
equal deleted inserted replaced
6632:4aa644a88500 6633:f1674aac3a1a
77 77
78 int32_t *outputsamples_buffer[MAX_CHANNELS]; 78 int32_t *outputsamples_buffer[MAX_CHANNELS];
79 79
80 /* stuff from setinfo */ 80 /* stuff from setinfo */
81 uint32_t setinfo_max_samples_per_frame; /* 0x1000 = 4096 */ /* max samples per frame? */ 81 uint32_t setinfo_max_samples_per_frame; /* 0x1000 = 4096 */ /* max samples per frame? */
82 uint8_t setinfo_7a; /* 0x00 */
83 uint8_t setinfo_sample_size; /* 0x10 */ 82 uint8_t setinfo_sample_size; /* 0x10 */
84 uint8_t setinfo_rice_historymult; /* 0x28 */ 83 uint8_t setinfo_rice_historymult; /* 0x28 */
85 uint8_t setinfo_rice_initialhistory; /* 0x0a */ 84 uint8_t setinfo_rice_initialhistory; /* 0x0a */
86 uint8_t setinfo_rice_kmodifier; /* 0x0e */ 85 uint8_t setinfo_rice_kmodifier; /* 0x0e */
87 uint8_t setinfo_7f; /* 0x02 */
88 uint16_t setinfo_80; /* 0x00ff */
89 uint32_t setinfo_82; /* 0x000020e7 */ /* max sample size?? */
90 uint32_t setinfo_86; /* 0x00069fe4 */ /* bit rate (average)?? */
91 uint32_t setinfo_8a_rate; /* 0x0000ac44 */
92 /* end setinfo stuff */ 86 /* end setinfo stuff */
93 87
94 } ALACContext; 88 } ALACContext;
95 89
96 static void allocate_buffers(ALACContext *alac) 90 static void allocate_buffers(ALACContext *alac)
118 return -1; 112 return -1;
119 } 113 }
120 114
121 /* buffer size / 2 ? */ 115 /* buffer size / 2 ? */
122 alac->setinfo_max_samples_per_frame = bytestream_get_be32(&ptr); 116 alac->setinfo_max_samples_per_frame = bytestream_get_be32(&ptr);
123 alac->setinfo_7a = *ptr++; 117 *ptr++; /* ??? */
124 alac->setinfo_sample_size = *ptr++; 118 alac->setinfo_sample_size = *ptr++;
125 alac->setinfo_rice_historymult = *ptr++; 119 alac->setinfo_rice_historymult = *ptr++;
126 alac->setinfo_rice_initialhistory = *ptr++; 120 alac->setinfo_rice_initialhistory = *ptr++;
127 alac->setinfo_rice_kmodifier = *ptr++; 121 alac->setinfo_rice_kmodifier = *ptr++;
128 /* channels? */ 122 *ptr++; /* channels? */
129 alac->setinfo_7f = *ptr++; 123 bytestream_get_be16(&ptr); /* ??? */
130 alac->setinfo_80 = bytestream_get_be16(&ptr); 124 bytestream_get_be32(&ptr); /* max coded frame size */
131 /* max coded frame size */ 125 bytestream_get_be32(&ptr); /* bitrate ? */
132 alac->setinfo_82 = bytestream_get_be32(&ptr); 126
133 /* bitrate ? */
134 alac->setinfo_86 = bytestream_get_be32(&ptr);
135 /* samplerate */ 127 /* samplerate */
136 alac->setinfo_8a_rate = bytestream_get_be32(&ptr); 128 alac->setinfo_8a_rate = bytestream_get_be32(&ptr);
137 129
138 allocate_buffers(alac); 130 allocate_buffers(alac);
139 131