]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/xwma.c
avformat/avformat: Remove outdated private fields
[ffmpeg] / libavformat / xwma.c
index 5a57caa8411beb2262b20ec91c9acefaaa073856..aedadcf14053dc59a75702fe7ad74abed13f57ef 100644 (file)
@@ -211,6 +211,10 @@ static int xwma_read_header(AVFormatContext *s)
             }
 
             for (i = 0; i < dpds_table_size; ++i) {
+                if (avio_feof(pb)) {
+                    ret = AVERROR_INVALIDDATA;
+                    goto fail;
+                }
                 dpds_table[i] = avio_rl32(pb);
                 size -= 4;
             }