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)
|
| 268 | 268 | for (;;) { |
| 269 | 269 | AVStream *vst; |
| 270 | 270 | size = next_tag(pb, &tag); |
| | 271 | if (size & 1) |
| | 272 | size += 1; |
| 271 | 273 | next_tag_ofs = avio_tell(pb) + size; |
| 272 | 274 | |
| 273 | 275 | if (url_feof(pb)) |