Commit db08882e authored by Vitor Sessak's avatar Vitor Sessak

Remove unneeded variables from context

Originally committed as revision 12882 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8431603a
...@@ -79,16 +79,10 @@ typedef struct { ...@@ -79,16 +79,10 @@ typedef struct {
/* stuff from setinfo */ /* stuff from setinfo */
uint32_t setinfo_max_samples_per_frame; /* 0x1000 = 4096 */ /* max samples per frame? */ uint32_t setinfo_max_samples_per_frame; /* 0x1000 = 4096 */ /* max samples per frame? */
uint8_t setinfo_7a; /* 0x00 */
uint8_t setinfo_sample_size; /* 0x10 */ uint8_t setinfo_sample_size; /* 0x10 */
uint8_t setinfo_rice_historymult; /* 0x28 */ uint8_t setinfo_rice_historymult; /* 0x28 */
uint8_t setinfo_rice_initialhistory; /* 0x0a */ uint8_t setinfo_rice_initialhistory; /* 0x0a */
uint8_t setinfo_rice_kmodifier; /* 0x0e */ uint8_t setinfo_rice_kmodifier; /* 0x0e */
uint8_t setinfo_7f; /* 0x02 */
uint16_t setinfo_80; /* 0x00ff */
uint32_t setinfo_82; /* 0x000020e7 */ /* max sample size?? */
uint32_t setinfo_86; /* 0x00069fe4 */ /* bit rate (average)?? */
uint32_t setinfo_8a_rate; /* 0x0000ac44 */
/* end setinfo stuff */ /* end setinfo stuff */
} ALACContext; } ALACContext;
...@@ -120,18 +114,16 @@ static int alac_set_info(ALACContext *alac) ...@@ -120,18 +114,16 @@ static int alac_set_info(ALACContext *alac)
/* buffer size / 2 ? */ /* buffer size / 2 ? */
alac->setinfo_max_samples_per_frame = bytestream_get_be32(&ptr); alac->setinfo_max_samples_per_frame = bytestream_get_be32(&ptr);
alac->setinfo_7a = *ptr++; *ptr++; /* ??? */
alac->setinfo_sample_size = *ptr++; alac->setinfo_sample_size = *ptr++;
alac->setinfo_rice_historymult = *ptr++; alac->setinfo_rice_historymult = *ptr++;
alac->setinfo_rice_initialhistory = *ptr++; alac->setinfo_rice_initialhistory = *ptr++;
alac->setinfo_rice_kmodifier = *ptr++; alac->setinfo_rice_kmodifier = *ptr++;
/* channels? */ *ptr++; /* channels? */
alac->setinfo_7f = *ptr++; bytestream_get_be16(&ptr); /* ??? */
alac->setinfo_80 = bytestream_get_be16(&ptr); bytestream_get_be32(&ptr); /* max coded frame size */
/* max coded frame size */ bytestream_get_be32(&ptr); /* bitrate ? */
alac->setinfo_82 = bytestream_get_be32(&ptr);
/* bitrate ? */
alac->setinfo_86 = bytestream_get_be32(&ptr);
/* samplerate */ /* samplerate */
alac->setinfo_8a_rate = bytestream_get_be32(&ptr); alac->setinfo_8a_rate = bytestream_get_be32(&ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment