libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit f28f272a5ff9c34fc3c52c7943d717a2ddfb40a9
parent 7dc94f87c638b51e791eb6485178cd20e4f8f89d
Author: Heikki Lindholm <holin@iki.fi>
Date:   Mon,  7 Jan 2008 07:27:34 +0000

clean up


Diffstat:
Msrc/plugins/flvextractor.c | 15++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/src/plugins/flvextractor.c b/src/plugins/flvextractor.c @@ -847,17 +847,10 @@ handleAudioBody(const unsigned char *data, size_t len, FLVStreamInfo *stinfo, struct EXTRACTOR_Keywords *prev) { - int soundType, soundSize, soundRate, soundFormat; - - soundType = *data & 0x01; - soundSize = (*data & 0x02) >> 1; - soundRate = (*data & 0x0C) >> 2; - soundFormat = (*data & 0xF0) >> 4; - - stinfo->audioCodec = soundFormat; - stinfo->audioRate = soundRate; - stinfo->audioChannels = soundType; - stinfo->audioSampleBits = soundSize; + stinfo->audioChannels = *data & 0x01; + stinfo->audioSampleBits = (*data & 0x02) >> 1; + stinfo->audioRate = (*data & 0x0C) >> 2; + stinfo->audioCodec = (*data & 0xF0) >> 4; return prev; }