shithub: mp3dec

Download patch

ref: 4284990e59037f39179e895f95f07ef59837e812
parent: 2856fedf8c917aecfbd935a41462a8646725d5db
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Dec 24 07:02:32 EST 2020

fix warnings (appear with objtype=386)

--- a/minimp3_ex.h
+++ b/minimp3_ex.h
@@ -623,7 +623,8 @@
         uint32_t frames;
         int delay, padding;
         dec->info = *info;
-        dec->start_offset = dec->offset = offset;
+        dec->offset = offset;
+        dec->start_offset = offset;
         dec->end_offset   = offset + buf_size;
         dec->free_format_bytes = free_format_bytes; /* should not change */
         if (3 == dec->info.layer)
@@ -630,7 +631,8 @@
         {
             int ret = mp3dec_check_vbrtag(frame, frame_size, &frames, &delay, &padding);
             if (ret)
-                dec->start_offset = dec->offset = offset + frame_size;
+            	dec->offset = offset + frame_size;
+                dec->start_offset = dec->offset;
             if (ret > 0)
             {
                 padding *= info->channels;