Ticket #2417: patchoddsize.diff

File patchoddsize.diff, 406 bytes (added by cehoyos, 3 years ago)
  • libavformat/wavdec.c

    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))