1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

Demuxer was fixed, so do not skip the first frame anymore

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14243 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-12-26 11:54:01 +00:00
parent 05026693d2
commit a5892844f6

View File

@ -46,7 +46,6 @@ static int init(sh_audio_t *sh)
MP3_Init();
#endif
MP3_samplerate=MP3_channels=0;
MP3_DecodeFrame(NULL,-2); // FIXME: skip the first frame (often trashed)
sh->a_buffer_len=MP3_DecodeFrame(sh->a_buffer,-1);
if(!sh->a_buffer_len) return 0; // unsupported layer/format
sh->channels=2; // hack