diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-22 03:33:38 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-22 03:33:38 +0400 |
commit | 28bc1d94b739d8273caad49641f8335240972cbf (patch) | |
tree | 1c8e757441784825983b763653e5c6736ddcbbed /libavformat/isom.h | |
parent | 977abf9aedec429d9c384058a6e3f39a2969b459 (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.h | 3 |
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 { |