]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/sol.c
Merge branch 'ronalds_buggy_gt8bit_sws'
[ffmpeg] / libavformat / sol.c
index 7ad894e304abbf36d4a76ef97dcabed939bf6ca6..c0d2c5d5a2eae4f4d0af17992e6044fe9c9c0587 100644 (file)
@@ -85,7 +85,6 @@ static int sol_channels(int magic, int type)
 static int sol_read_header(AVFormatContext *s,
                           AVFormatParameters *ap)
 {
-    int size;
     unsigned int magic,tag;
     AVIOContext *pb = s->pb;
     unsigned int id, channels, rate, type;
@@ -99,7 +98,7 @@ static int sol_read_header(AVFormatContext *s,
         return -1;
     rate = avio_rl16(pb);
     type = avio_r8(pb);
-    size = avio_rl32(pb);
+    avio_skip(pb, 4); /* size */
     if (magic != 0x0B8D)
         avio_r8(pb); /* newer SOLs contain padding byte */