Commit fdfbb1a8 authored by romansh's avatar romansh

simplifying code as per Michael's suggestion


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15583 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 92e71131
......@@ -201,10 +201,9 @@ static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame)
quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
/* note: ach counts PAIRS of channels (i.e. stereo channels) */
if (stype == 3) {
ach = 4;
} else
ach = (stype == 2 || (quant && (freq == 2))) ? 2 : 1;
ach = (int[4]){ 1, 0, 2, 4}[stype];
if (ach == 1 && quant && freq == 2)
ach = 2;
/* Dynamic handling of the audio streams in DV */
for (i=0; i<ach; i++) {
......
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