projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f85dfd
)
audioparsers: Added index check before using the index
author
Sanjay NM
<sanjay.nm@samsung.com>
Thu, 18 Sep 2014 11:09:19 +0000
(16:39 +0530)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 24 Sep 2014 07:21:35 +0000
(10:21 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=736878
gst/audioparsers/gstmpegaudioparse.c
patch
|
blob
|
history
diff --git
a/gst/audioparsers/gstmpegaudioparse.c
b/gst/audioparsers/gstmpegaudioparse.c
index
31bbc4c
..
5372b39
100644
(file)
--- a/
gst/audioparsers/gstmpegaudioparse.c
+++ b/
gst/audioparsers/gstmpegaudioparse.c
@@
-927,7
+927,7
@@
gst_mpeg_audio_parse_handle_first_frame (GstMpegAudioParse * mp3parse,
if (table[percent] == i) {
mp3parse->xing_seek_table_inverse[i] = percent * 100;
- } else if (
table[percent] < i && percent < 99
) {
+ } else if (
percent < 99 && table[percent]
) {
gdouble fa, fb, fx;
gint a = percent, b = percent + 1;