From 9f72a9753e68c4064796f2361fb12492a85a8e0b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 25 Nov 2013 23:13:01 +0100 Subject: demux: export dts from demux_lavf, use it for avi Having the DTS directly can be useful for restoring PTS values. The avi file format doesn't actually store PTS values, just DTS. An older hack explicitly exported the DTS as PTS (ignoring the [I assume] genpts generated non-sense PTS), which is not necessary anymore due to this change. --- demux/packet.h | 1 + 1 file changed, 1 insertion(+) (limited to 'demux/packet.h') diff --git a/demux/packet.h b/demux/packet.h index 96e3885761..ca57179acb 100644 --- a/demux/packet.h +++ b/demux/packet.h @@ -26,6 +26,7 @@ typedef struct demux_packet { int len; double pts; + double dts; double duration; double stream_pts; int64_t pos; // position in source file byte stream -- cgit v1.2.3