Ticket #2417: 0001-Fix-reading-wav-files-with-odd-length-chunks.patch

File 0001-Fix-reading-wav-files-with-odd-length-chunks.patch, 724 bytes (added by cehoyos, 3 years ago)
  • libavformat/wavdec.c

    From 68755a1adefd0e3f2356c85e4d3bd435a01118ae Mon Sep 17 00:00:00 2001
    From: Carl Eugen Hoyos <cehoyos@ag.or.at>
    Date: Mon, 8 Apr 2013 19:36:01 +0200
    Subject: [PATCH] Fix reading wav files with odd-length chunks.
    
    Fixes ticket #2417.
    ---
     libavformat/wavdec.c |    2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
    index 782fa64..2f3999a 100644
    a b static int wav_read_header(AVFormatContext *s) 
    268268    for (;;) { 
    269269        AVStream *vst; 
    270270        size = next_tag(pb, &tag); 
     271        if (size & 1) 
     272            size += 1; 
    271273        next_tag_ofs = avio_tell(pb) + size; 
    272274 
    273275        if (url_feof(pb))