diff libmpcodecs/vd_ffmpeg.c @ 11977:efb37725d616

flushing stuff after seeking (finally we can view MPEG without thouse blocks after seeking with -vc ffmpeg12)
author michael
date Wed, 18 Feb 2004 15:23:41 +0000
parents e1e01dea7c35
children d8890a065727
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Wed Feb 18 13:34:41 2004 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Wed Feb 18 15:23:41 2004 +0000
@@ -137,7 +137,11 @@
 #endif
 	}
         return CONTROL_FALSE;
-    }
+        }
+    break;
+    case VDCTRL_RESYNC_STREAM:
+        avcodec_flush_buffers(avctx);
+    return CONTROL_TRUE;
     }
     return CONTROL_UNKNOWN;
 }