shithub: mp3dec

Download patch

ref: f07984fc62846eb61f12b3c01a86e31f8a71f2d8
parent: 4e4702c945707858222f49ffe4bc4ac7f5c17ae1
author: lieff <[email protected]>
date: Thu Feb 27 20:47:28 EST 2020

mp3dec_ex: do not try to detect vbrtag in next frame if "bad"
vbrtag with no frames flag found.

--- a/minimp3_ex.h
+++ b/minimp3_ex.h
@@ -548,7 +548,7 @@
 {
     mp3dec_frame_t *idx_frame;
     mp3dec_ex_t *dec = (mp3dec_ex_t *)user_data;
-    if (!dec->index.frames && !dec->vbr_tag_found)
+    if (!dec->index.frames && !dec->start_offset)
     {   /* detect VBR tag and try to avoid full scan */
         uint32_t frames;
         int delay, padding;