Mercurial > libavformat.hg
changeset 3104:0f8d91124c84 libavformat
Print slightly more useful info.
author | michael |
---|---|
date | Mon, 03 Mar 2008 01:23:18 +0000 |
parents | 137e1fc7d16b |
children | 2b9c6bfc04a5 |
files | avidec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Sun Mar 02 23:47:30 2008 +0000 +++ b/avidec.c Mon Mar 03 01:23:18 2008 +0000 @@ -488,8 +488,8 @@ 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