diff --git a/src/driver/audiodec/ffmpegdec.cpp b/src/driver/audiodec/ffmpegdec.cpp index 1d71edbb7..7d065570a 100644 --- a/src/driver/audiodec/ffmpegdec.cpp +++ b/src/driver/audiodec/ffmpegdec.cpp @@ -326,7 +326,11 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state, next_skip_pts = pts + skip/4; seek_flags = 0; } - av_seek_frame(avc, best_stream, pts, seek_flags); + int result = av_seek_frame(avc, best_stream, pts, seek_flags); + if (result < 0) { + fprintf(stderr,"av_seek_frame error\n"); + } + avcodec_flush_buffers(c); // if a custom value was set we only jump once if (actSecsToSkip != 0) { *state=PLAY;