swr: fix swr_drop_output()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 26 May 2012 00:33:38 +0000 (02:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 26 May 2012 00:59:22 +0000 (02:59 +0200)
Fixes part of Ticket1341

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 72261fa8675ca6e118efe202fcb13fd0866d4a54)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample.c

index a0560a1..27f3581 100644 (file)
@@ -629,6 +629,7 @@ int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_coun
         av_freep(&tmp.data);
         if(s->drop_output || !out_arg)
             return 0;
+        in_count = 0;
     }
 
     if(!in_arg){