summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-18 15:23:41 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-18 15:23:41 +0000
commit14c5a7c333253a479c42760f7d86d698989fddd9 (patch)
tree0133827c89da2f5f51b438513f99358831fe0e92 /libmpcodecs/vd_ffmpeg.c
parent6f0edb45743d6f324b11fc89b58869f97a21b777 (diff)
downloadmpv-14c5a7c333253a479c42760f7d86d698989fddd9.tar.bz2
mpv-14c5a7c333253a479c42760f7d86d698989fddd9.tar.xz
flushing stuff after seeking (finally we can view MPEG without thouse blocks after seeking with -vc ffmpeg12)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11978 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 08f8964372..023b036a15 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -137,7 +137,11 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
#endif
}
return CONTROL_FALSE;
- }
+ }
+ break;
+ case VDCTRL_RESYNC_STREAM:
+ avcodec_flush_buffers(avctx);
+ return CONTROL_TRUE;
}
return CONTROL_UNKNOWN;
}