summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-03 01:55:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-03 02:27:07 +0100
commit2dcaa1b9d142ae113b28bffdbf7f8f8900b5e770 (patch)
tree5ce3821a608db13a35bc453e8a141f0aa9f7bfd1 /libavformat/avformat.h
parent411f8f4c9a05796e22e12bf0a22c967f28c2d430 (diff)
avformat/utils: detect MPEG streams with faulty DTS and discard affected DTS
Fixes issue2.ts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 52eeb613cf..e0ec3da028 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -988,6 +988,13 @@ typedef struct AVStream {
int64_t pts_reorder_error[MAX_REORDER_DELAY+1];
uint8_t pts_reorder_error_count[MAX_REORDER_DELAY+1];
+ /**
+ * Internal data to analyze DTS and detect faulty mpeg streams
+ */
+ int64_t last_dts_for_order_check;
+ uint8_t dts_ordered;
+ uint8_t dts_misordered;
+
} AVStream;
AVRational av_stream_get_r_frame_rate(const AVStream *s);