aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-03-03 01:23:18 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-03-03 01:23:18 +0000
commit143b082044d8435d8cc9c32691fb98a6ae14977a (patch)
tree90299daa8983e43193f92c835044434bc59c5544 /libavformat
parenta7805e298395372e64f5d6c0e3d60ceddff6adf9 (diff)
downloadffmpeg-143b082044d8435d8cc9c32691fb98a6ae14977a.tar.gz
Print slightly more useful info.
Originally committed as revision 12295 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avidec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 4b9bcf2a43..82acc2a7c1 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -488,8 +488,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
break;
case CODEC_TYPE_AUDIO:
get_wav_header(pb, st->codec, size);
- if(ast->sample_size && st->codec->block_align && ast->sample_size % st->codec->block_align)
- av_log(s, AV_LOG_DEBUG, "invalid sample size or block align detected\n");
+ if(ast->sample_size && st->codec->block_align && ast->sample_size != st->codec->block_align)
+ av_log(s, AV_LOG_WARNING, "sample size (%d) != block align (%d)\n", ast->sample_size, st->codec->block_align);
if (size%2) /* 2-aligned (fix for Stargate SG-1 - 3x18 - Shades of Grey.avi) */
url_fskip(pb, 1);
/* Force parsing as several audio frames can be in