1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

Reindent for last commit.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26694 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2008-05-08 16:05:49 +00:00
parent 30f7fb8c69
commit d915b7fc97

View File

@ -63,29 +63,29 @@ static int ac3dts_fillbuff(sh_audio_t *sh_audio)
if (sh_audio->format == 0x2001) if (sh_audio->format == 0x2001)
{ {
length = dts_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate); length = dts_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
if(length >= 12) if(length >= 12)
{
if(isdts != 1)
{ {
mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to DTS, %d bps, %d Hz\n", bit_rate, sample_rate); if(isdts != 1)
isdts = 1; {
mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to DTS, %d bps, %d Hz\n", bit_rate, sample_rate);
isdts = 1;
}
break;
} }
break;
}
} }
else else
{ {
length = a52_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate); length = a52_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
if(length >= 7 && length <= 3840) if(length >= 7 && length <= 3840)
{
if(isdts != 0)
{ {
mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to AC3, %d bps, %d Hz\n", bit_rate, sample_rate); if(isdts != 0)
isdts = 0; {
mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to AC3, %d bps, %d Hz\n", bit_rate, sample_rate);
isdts = 0;
}
break; /* we're done.*/
} }
break; /* we're done.*/
}
} }
/* bad file => resync*/ /* bad file => resync*/
memcpy(sh_audio->a_in_buffer, sh_audio->a_in_buffer + 1, 11); memcpy(sh_audio->a_in_buffer, sh_audio->a_in_buffer + 1, 11);