summaryrefslogtreecommitdiff
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-22 00:33:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-22 00:33:38 +0100
commit28bc1d94b739d8273caad49641f8335240972cbf (patch)
tree1c8e757441784825983b763653e5c6736ddcbbed /libavformat/isom.h
parent977abf9aedec429d9c384058a6e3f39a2969b459 (diff)
avformat/mov: redesign the fps calculation
This uses STTS and TRUN information to calculate the fps It seems to work with more files than the previous code Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 2834b11b3e..a929ebf05e 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -142,6 +142,9 @@ typedef struct MOVStreamContext {
int start_pad; ///< amount of samples to skip due to enc-dec delay
unsigned int rap_group_count;
MOVSbgp *rap_group;
+
+ int nb_frames_for_fps;
+ int64_t duration_for_fps;
} MOVStreamContext;
typedef struct MOVContext {