From 7fc41e9cb80e62f31caf4d5b7a6accabed2e7bc2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 12 Nov 2011 02:06:41 +0000 Subject: [PATCH] minor pstats adjustment --- panda/src/movies/ffmpegVideoCursor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/movies/ffmpegVideoCursor.cxx b/panda/src/movies/ffmpegVideoCursor.cxx index b83def249c..56245875e6 100644 --- a/panda/src/movies/ffmpegVideoCursor.cxx +++ b/panda/src/movies/ffmpegVideoCursor.cxx @@ -757,9 +757,6 @@ fetch_frame(double time) { _begin_time = _packet_time; if (_packet_time <= time) { - static PStatCollector seek_pcollector("*:FFMPEG Video Decoding:Seek"); - PStatTimer timer(seek_pcollector); - _video_ctx->skip_frame = AVDISCARD_BIDIR; // Put the current packet aside in case we discover it's the // packet to keep. @@ -776,6 +773,9 @@ fetch_frame(double time) { return true; } while (_packet_time <= time) { + static PStatCollector seek_pcollector("*:FFMPEG Video Decoding:Seek"); + PStatTimer timer(seek_pcollector); + // Decode and discard the previous packet. #if LIBAVCODEC_VERSION_INT < 3414272 avcodec_decode_video(_video_ctx, _frame,