changeset 649:25825079f833 libavformat

1/0 fix
author michael
date Fri, 21 Jan 2005 23:38:09 +0000
parents 340f1911cd54
children c129846f7f02
files avidec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Wed Jan 19 12:27:48 2005 +0000
+++ b/avidec.c	Fri Jan 21 23:38:09 2005 +0000
@@ -254,6 +254,8 @@
                     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 */