changeset 15558:3aee7daaa8e5

Fix ADCTRL_SKIP_FRAME and add ADCTRL_RESYNC_STREAM
author hzoli
date Tue, 24 May 2005 06:39:01 +0000
parents 40d5e0ccce93
children 9f157ca7e3c2
files libmpcodecs/ad_hwac3.c libmpcodecs/ad_liba52.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c	Tue May 24 06:03:37 2005 +0000
+++ b/libmpcodecs/ad_hwac3.c	Tue May 24 06:39:01 2005 +0000
@@ -134,8 +134,9 @@
 {
   switch(cmd)
   {
+  case ADCTRL_RESYNC_STREAM:
   case ADCTRL_SKIP_FRAME:
-      ac3dts_fillbuff(sh); break; // skip AC3 frame
+      ac3dts_fillbuff(sh);
       return CONTROL_TRUE;
   }
   return CONTROL_UNKNOWN;
--- a/libmpcodecs/ad_liba52.c	Tue May 24 06:03:37 2005 +0000
+++ b/libmpcodecs/ad_liba52.c	Tue May 24 06:39:01 2005 +0000
@@ -263,8 +263,9 @@
 {
     switch(cmd)
     {
+      case ADCTRL_RESYNC_STREAM:
       case ADCTRL_SKIP_FRAME:
-	  a52_fillbuff(sh); break; // skip AC3 frame
+	  a52_fillbuff(sh);
 	  return CONTROL_TRUE;
       case ADCTRL_SET_VOLUME: {
 	  float vol = *(float*)arg;