From ef70bb7034024580bda449182892b031e9624c3e Mon Sep 17 00:00:00 2001
From: Daniel Kang <daniel.d.kang@gmail.com>
Date: Mon, 10 Jan 2011 01:41:10 -0500
Subject: [PATCH] Update check for invalid time_scale for mov files

---
 libavformat/mov.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index b602221..30fc9ec 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1750,7 +1750,7 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
         return 0;
     }

-    if (!sc->time_scale) {
+    if (sc->time_scale <= 0) {
         av_log(c->fc, AV_LOG_WARNING, "stream %d, timescale not set\n", st->index);
         sc->time_scale = c->time_scale;
         if (!sc->time_scale)
--
1.7.2.2

