mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mpegaudioparse: fix Xing inverse seek table building
This commit is contained in:
parent
3dd687c4c2
commit
6aa267cfc8
1 changed files with 2 additions and 2 deletions
|
@ -1015,9 +1015,9 @@ gst_mp3parse_handle_first_frame (GstMPEGAudioParse * mp3parse)
|
|||
fb = table[b];
|
||||
fx = (b - a) / (fb - fa) * (i - fa) + a;
|
||||
mp3parse->xing_seek_table_inverse[i] = (guint16) (fx * 100);
|
||||
} else if (percent == 98 && table[percent + 1] <= i) {
|
||||
} else if (percent == 99) {
|
||||
gdouble fa, fb, fx;
|
||||
gint a = percent + 1, b = 100;
|
||||
gint a = percent, b = 100;
|
||||
|
||||
fa = table[a];
|
||||
fb = 256.0;
|
||||
|
|
Loading…
Reference in a new issue