From 4b29ed399f3cab201138490c976806118c25e06b Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Wed, 13 May 2009 07:55:03 +0000 Subject: Parse 'cslg' atom to retrieve dts shift when 'ctts' duration is negative. We have now dts <= pts, note that for some B frames dts+1 == pts can happen if a crappy timebase is used instead of correct /1001. Originally committed as revision 18810 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/isom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/isom.h') diff --git a/libavformat/isom.h b/libavformat/isom.h index ecfa83c150..5b18f1ee98 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -115,9 +115,10 @@ typedef struct MOVStreamContext { unsigned drefs_count; MOVDref *drefs; int dref_id; - int wrong_dts; ///< dts are wrong due to negative ctts + int wrong_dts; ///< dts are wrong due to huge ctts offset (iMovie files) int width; ///< tkhd width int height; ///< tkhd height + int dts_shift; ///< dts shift when ctts is negative } MOVStreamContext; typedef struct MOVContext { -- cgit v1.2.3