X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fseek.c;h=9be8db97845bc7617316f0da9c0b1014e83905fa;hb=f2f2e7627f0c878d13275af5d166ec5932665e28;hp=524cd87e6a2cbfa3a64e19a43957f67809014468;hpb=27c7ca9c12bb42d5c44d46f24cd970469d0ef55a;p=ffmpeg diff --git a/libavformat/seek.c b/libavformat/seek.c index 524cd87e6a2..9be8db97845 100644 --- a/libavformat/seek.c +++ b/libavformat/seek.c @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "seek.h" #include "libavutil/mathematics.h" #include "libavutil/mem.h" @@ -428,13 +430,11 @@ AVParserState *ff_store_parser_state(AVFormatContext *s) ss->parser = st->parser; ss->last_IP_pts = st->last_IP_pts; ss->cur_dts = st->cur_dts; - ss->reference_dts = st->reference_dts; ss->probe_packets = st->probe_packets; st->parser = NULL; st->last_IP_pts = AV_NOPTS_VALUE; st->cur_dts = AV_NOPTS_VALUE; - st->reference_dts = AV_NOPTS_VALUE; st->probe_packets = MAX_PROBE_PACKETS; } @@ -467,7 +467,6 @@ void ff_restore_parser_state(AVFormatContext *s, AVParserState *state) st->parser = ss->parser; st->last_IP_pts = ss->last_IP_pts; st->cur_dts = ss->cur_dts; - st->reference_dts = ss->reference_dts; st->probe_packets = ss->probe_packets; }