mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
ffmpegdec: try to fix overread on rewind/forward play
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user