aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp
index 370a2cc02..0b63efe6f 100644
--- a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp
+++ b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp
@@ -38,6 +38,7 @@ DecoderFFmpeg::DecoderFFmpeg(const QString &path)
ic = 0;
m_path = path;
m_temp_pkt.size = 0;
+ m_pkt.size = 0;
}
@@ -160,7 +161,8 @@ void DecoderFFmpeg::seek(qint64 pos)
timestamp += ic->start_time;
av_seek_frame(ic, -1, timestamp, AVSEEK_FLAG_BACKWARD);
avcodec_flush_buffers(c);
- m_skip = TRUE;
+ if(m_pkt.size)
+ m_skip = TRUE;
}
void DecoderFFmpeg::fillBuffer()