[PATCH] whitespace changes after reading all id3v2 tags=0A=

David Byron none dbyron
Thu Sep 9 07:50:21 CEST 2010


=0A=
---=0A=
 libavformat/id3v2.c |   24 ++++++++++++------------=0A=
 1 files changed, 12 insertions(+), 12 deletions(-)=0A=
=0A=
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c=0A=
index b51f049..877e37d 100644=0A=
--- a/libavformat/id3v2.c=0A=
+++ b/libavformat/id3v2.c=0A=
@@ -59,20 +59,20 @@ void ff_id3v2_read(AVFormatContext *s, const char =
*magic)=0A=
     do {=0A=
         /* save the current offset in case there's nothing to read/skip =
*/=0A=
         off =3D url_ftell(s->pb);=0A=
-    ret =3D get_buffer(s->pb, buf, ID3v2_HEADER_SIZE);=0A=
-    if (ret !=3D ID3v2_HEADER_SIZE)=0A=
-        return;=0A=
+        ret =3D get_buffer(s->pb, buf, ID3v2_HEADER_SIZE);=0A=
+        if (ret !=3D ID3v2_HEADER_SIZE)=0A=
+            return;=0A=
         found_header =3D ff_id3v2_match(buf, magic);=0A=
         if (found_header) {=0A=
-        /* parse ID3v2 header */=0A=
-        len =3D ((buf[6] & 0x7f) << 21) |=0A=
-            ((buf[7] & 0x7f) << 14) |=0A=
-            ((buf[8] & 0x7f) << 7) |=0A=
-            (buf[9] & 0x7f);=0A=
-        ff_id3v2_parse(s, len, buf[3], buf[5]);=0A=
-    } else {=0A=
-        url_fseek(s->pb, off, SEEK_SET);=0A=
-    }=0A=
+            /* parse ID3v2 header */=0A=
+            len =3D ((buf[6] & 0x7f) << 21) |=0A=
+                ((buf[7] & 0x7f) << 14) |=0A=
+                ((buf[8] & 0x7f) << 7) |=0A=
+                (buf[9] & 0x7f);=0A=
+            ff_id3v2_parse(s, len, buf[3], buf[5]);=0A=
+        } else {=0A=
+            url_fseek(s->pb, off, SEEK_SET);=0A=
+        }=0A=
     } while (found_header);=0A=
 }=0A=
 =0A=
-- =0A=
1.6.0.4=0A=
=0A=

------=_NextPart_000_01F6_01CB4FF5.619493A0
Content-Type: application/octet-stream;
	name="0003-make-sure-to-get-to-the-end-of-an-id3v2-tag-even-if.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="0003-make-sure-to-get-to-the-end-of-an-id3v2-tag-even-if.patch"




More information about the ffmpeg-devel mailing list