diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-21 23:38:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-21 23:38:09 +0000 |
commit | 0fbc6961eb6de96d457b71ccd753a0b22925b60d (patch) | |
tree | bf62c1869b6a14a141dc7390ceebc5040a9ebb1e | |
parent | 8b8e1c5580592ae207a9c2e9592bcef906ad3fd4 (diff) | |
download | ffmpeg-0fbc6961eb6de96d457b71ccd753a0b22925b60d.tar.gz |
1/0 fix
Originally committed as revision 3856 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 060d3b926d..f394bfc3fa 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -254,6 +254,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ast->rate = get_le32(pb); if(!ast->rate) ast->rate= 1; //wrong but better then 1/0 + if(!ast->scale) + ast->scale= 1; //wrong but better then 1/0 av_set_pts_info(st, 64, ast->scale, ast->rate); ast->start= get_le32(pb); /* start */ length = get_le32(pb); /* length, in samples or bytes */ |