]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/xwma.c
avformat/mpegts: reset last_version on seeking
[ffmpeg] / libavformat / xwma.c
index a1f2dc224a26ed33dd9f82bb0372da5392f71a9d..683d3d0d4d21649a90365e7801c0edee90e8370f 100644 (file)
@@ -172,7 +172,7 @@ static int xwma_read_header(AVFormatContext *s)
             /* Allocate some temporary storage to keep the dpds data around.
              * for processing later on.
              */
-            dpds_table = av_malloc(dpds_table_size * sizeof(uint32_t));
+            dpds_table = av_malloc_array(dpds_table_size, sizeof(uint32_t));
             if (!dpds_table) {
                 return AVERROR(ENOMEM);
             }