diff libmpcodecs/ad_ffmpeg.c @ 30379:0140d505dd91

Reset the parser on seek. Should fix some cases of audio "blips" after seeking. AC3 is still broken due to the libavcodec parser being broken.
author reimar
date Sun, 24 Jan 2010 15:19:14 +0000
parents c6c40936049c
children bbb6ebec87a0
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Sun Jan 24 15:16:39 2010 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Sun Jan 24 15:19:14 2010 +0000
@@ -153,6 +153,7 @@
     switch(cmd){
     case ADCTRL_RESYNC_STREAM:
         avcodec_flush_buffers(lavc_context);
+        ds_clear_parser(sh->ds);
     return CONTROL_TRUE;
     }
     return CONTROL_UNKNOWN;