summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-04-13 11:45:18 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-04-13 11:45:18 +0000
commit7ce76ee433192a0413a1f542c578e18957ec8b83 (patch)
tree1ff392ae3385ac5d3b823f9e366b65af1c70c790 /libavformat/avidec.c
parent0dbb651564fa4c0e4583abd1ce31ab1d2eb0f429 (diff)
Print warning if scale/rate is invalid.
Originally committed as revision 12806 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index c85439ec06..ef544648bc 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -380,6 +380,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
ast->scale = get_le32(pb);
ast->rate = get_le32(pb);
if(!(ast->scale && ast->rate)){
+ av_log(s, AV_LOG_WARNING, "Scale/Rate is %u/%u which is invalid. (This file has been generated by broken software)\n", ast->scale, ast->rate);
if(frame_period){
ast->rate = 1000000;
ast->scale = frame_period;