diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-13 07:55:03 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-13 07:55:03 +0000 |
commit | 4b29ed399f3cab201138490c976806118c25e06b (patch) | |
tree | 3bd8652b1b9b1054ca19dfdaa1dc7367d33597be /libavformat/isom.h | |
parent | ec21c21563ae8e1873c664172165bab48b21fa22 (diff) | |
download | ffmpeg-4b29ed399f3cab201138490c976806118c25e06b.tar.gz |
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
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r-- | libavformat/isom.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |