summaryrefslogtreecommitdiff
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-13 07:55:03 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-13 07:55:03 +0000
commit4b29ed399f3cab201138490c976806118c25e06b (patch)
tree3bd8652b1b9b1054ca19dfdaa1dc7367d33597be /libavformat/isom.h
parentec21c21563ae8e1873c664172165bab48b21fa22 (diff)
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.h3
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 {