summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/mpa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c
index 0f57592..281a7ab 100644
--- a/apps/codecs/mpa.c
+++ b/apps/codecs/mpa.c
@@ -220,6 +220,7 @@ next_track:
if (max < 0) max = 0;
if (max < framelength) framelength = (int)max;
+ if (framelength == 0 && frame_skip == 0) break;
}
/* Check if sample rate and stereo settings changed in this frame. */