changeset 3212:3c9e11aa154d libavformat

Print warning if scale/rate is invalid.
author michael
date Sun, 13 Apr 2008 11:45:18 +0000
parents 2bf3b94c17d4
children d5ad219a794f
files avidec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Sun Apr 13 11:41:45 2008 +0000
+++ b/avidec.c	Sun Apr 13 11:45:18 2008 +0000
@@ -380,6 +380,7 @@
             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;