[FFmpeg-cvslog] swresample/swresample-test: Randomly wipe out channel counts

Michael Niedermayer git at videolan.org
Sat May 16 00:16:05 CEST 2015


ffmpeg | branch: release/2.6 | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 12 22:08:52 2015 +0200| [3f9ecaf886e544a5281a3a00ac307e8b2b624013] | committer: Michael Niedermayer

swresample/swresample-test: Randomly wipe out channel counts

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f9ecaf886e544a5281a3a00ac307e8b2b624013
---

 libswresample/swresample-test.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libswresample/swresample-test.c b/libswresample/swresample-test.c
index 8859e94..7e2854d 100644
--- a/libswresample/swresample-test.c
+++ b/libswresample/swresample-test.c
@@ -314,6 +314,11 @@ int main(int argc, char **argv){
             fprintf(stderr, "Failed to init backw_ctx\n");
             return 1;
         }
+        if (uint_rand(rand_seed) % 3 == 0)
+            av_opt_set_int(forw_ctx, "ich", 0, 0);
+        if (uint_rand(rand_seed) % 3 == 0)
+            av_opt_set_int(forw_ctx, "och", 0, 0);
+
         if(swr_init( forw_ctx) < 0)
             fprintf(stderr, "swr_init(->) failed\n");
         if(swr_init(backw_ctx) < 0)



More information about the ffmpeg-cvslog mailing list