1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

Disable reading of flac metadata, mere metadata is not worth such a mess.

If you want this, fix the implementation to not crash at least occasionally,
or wait till I get bored enough to fix it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25918 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-01-29 22:04:46 +00:00
parent 80d22ebb9f
commit c6894da2cd

View File

@ -131,6 +131,7 @@ static mp3_hdr_t *add_mp3_hdr(mp3_hdr_t **list, off_t st_pos,
return NULL;
}
#if 0
#define FLAC_SIGNATURE_SIZE 4
#define FLAC_STREAMINFO_SIZE 34
#define FLAC_SEEKPOINT_SIZE 18
@ -273,6 +274,7 @@ get_flac_metadata (demuxer_t* demuxer)
}
} while ((preamble[0] & 0x80) == 0);
}
#endif
static int demux_audio_open(demuxer_t* demuxer) {
stream_t *s;
@ -510,7 +512,7 @@ static int demux_audio_open(demuxer_t* demuxer) {
}
if (sh_audio->i_bps < 1) // guess value to prevent crash
sh_audio->i_bps = 64 * 1024;
get_flac_metadata (demuxer);
// get_flac_metadata (demuxer);
break;
}