1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-20 05:42:19 +00:00

Remove another two useless special-case from flac metadata reading function

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26408 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-04-12 15:16:37 +00:00
parent 4d4cb3a3f2
commit 71ed16bbb4

View File

@ -168,26 +168,6 @@ get_flac_metadata (demuxer_t* demuxer)
switch (preamble[0] & 0x7F)
{
case FLAC_STREAMINFO:
{
if (blk_len != FLAC_STREAMINFO_SIZE)
return;
stream_skip (s, FLAC_STREAMINFO_SIZE);
break;
}
case FLAC_SEEKTABLE:
{
int seekpoint_count, i;
seekpoint_count = blk_len / FLAC_SEEKPOINT_SIZE;
for (i = 0; i < seekpoint_count; i++)
if (stream_skip (s, FLAC_SEEKPOINT_SIZE) != 1)
return;
break;
}
case FLAC_VORBIS_COMMENT:
{
/* For a description of the format please have a look at */
@ -248,8 +228,10 @@ get_flac_metadata (demuxer_t* demuxer)
break;
}
case FLAC_STREAMINFO:
case FLAC_PADDING:
case FLAC_APPLICATION:
case FLAC_SEEKTABLE:
case FLAC_CUESHEET:
default:
/* 6-127 are presently reserved */