mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
Print warning if scale/rate is invalid.
Originally committed as revision 12806 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0dbb651564
commit
7ce76ee433
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user