Commit 286a5ea9 authored by michael's avatar michael

Print warning if scale/rate is invalid.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12806 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 04235025
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment