diff --git a/ChangeLog b/ChangeLog index d608c3dd07..3a10a9de2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-14 Michael Smith + + * gst/mpegaudioparse/gstmpegaudioparse.c: + Calculate samples per frame correctly for "MPEG 2.5" layer 3. + Fixes skipping on these files. + 2008-10-14 Sebastian Dröge Patch by: Robin Stocker diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index 05a12ab2cf..8e40b5d360 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -1349,10 +1349,12 @@ gst_mp3parse_chain (GstPad * pad, GstBuffer * buf) mp3parse->spf = 384; else if (mp3parse->layer == 2) mp3parse->spf = 1152; - else if (mp3parse->version == 2) { - mp3parse->spf = 576; - } else + else if (mp3parse->version == 1) { mp3parse->spf = 1152; + } else { + /* MPEG-2 or "2.5" */ + mp3parse->spf = 576; + } } mp3parse->bit_rate = bitrate;