]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/riffdec.c
Merge commit '5eb562831b3a9bea8026c413ef1338e06450d005'
[ffmpeg] / libavformat / riffdec.c
index aa637b6fcfef7e26dfa36fb164accf09238a7251..d7b81a0d08c360093e55aa1dbf6f1b23549fc3fa 100644 (file)
@@ -279,6 +279,9 @@ int ff_read_riff_info(AVFormatContext *s, int64_t size)
         }
 
         AV_WL32(key, chunk_code);
+        // Work around VC++ 2015 Update 1 code-gen bug:
+        // https://connect.microsoft.com/VisualStudio/feedback/details/2291638
+        key[4] = 0;
 
         if (avio_read(pb, value, chunk_size) != chunk_size) {
             av_log(s, AV_LOG_WARNING,