Johannes Weißl
2011-03-14 02:01:35 UTC
Otherwise mp3 files with wrong XING header can't be played.
---
nomad.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/nomad.c b/nomad.c
index 7fb9865..bc578b6 100644
--- a/nomad.c
+++ b/nomad.c
@@ -392,7 +392,7 @@ static void calc_fast(struct nomad *nomad)
{
nomad->info.avg_bitrate = -1;
nomad->info.vbr = -1;
- if (nomad->has_xing && (nomad->xing.flags & XING_FRAMES)) {
+ if (nomad->has_xing && (nomad->xing.flags & XING_FRAMES) && nomad->xing.nr_frames) {
nomad->info.nr_frames = nomad->xing.nr_frames;
mad_timer_multiply(&nomad->timer, nomad->info.nr_frames);
} else {
---
nomad.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/nomad.c b/nomad.c
index 7fb9865..bc578b6 100644
--- a/nomad.c
+++ b/nomad.c
@@ -392,7 +392,7 @@ static void calc_fast(struct nomad *nomad)
{
nomad->info.avg_bitrate = -1;
nomad->info.vbr = -1;
- if (nomad->has_xing && (nomad->xing.flags & XING_FRAMES)) {
+ if (nomad->has_xing && (nomad->xing.flags & XING_FRAMES) && nomad->xing.nr_frames) {
nomad->info.nr_frames = nomad->xing.nr_frames;
mad_timer_multiply(&nomad->timer, nomad->info.nr_frames);
} else {
--
1.7.4.1
1.7.4.1