mirror of https://github.com/mpv-player/mpv
Simplify: use AV_RB24
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26407 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
84121288c1
commit
4d4cb3a3f2
|
@ -164,7 +164,7 @@ get_flac_metadata (demuxer_t* demuxer)
|
|||
if (r != FLAC_SIGNATURE_SIZE)
|
||||
return;
|
||||
|
||||
blk_len = (preamble[1] << 16) | (preamble[2] << 8) | (preamble[3] << 0);
|
||||
blk_len = AV_RB24(preamble + 1);
|
||||
|
||||
switch (preamble[0] & 0x7F)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue