From 1cef9527318ac5eef94043f47f70bc0986d73ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 20 Dec 2002 21:05:59 +0000 Subject: [PATCH] Fix for odd strf tag in Stargate SG-1 - 3x18 - Shades of Grey.avi Originally committed as revision 1350 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avidec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index fc719d3fff..449b73b046 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -159,6 +159,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) break; case CODEC_TYPE_AUDIO: get_wav_header(pb, &st->codec, (size >= 18)); + if (size%2) /* 2-aligned (fix for Stargate SG-1 - 3x18 - Shades of Grey.avi) */ + url_fskip(pb, 1); break; default: url_fskip(pb, size);