diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-12 22:08:52 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-12 22:21:53 +0200 |
commit | ff50b1b13be965c93a9a7169edb62631a928e308 (patch) | |
tree | 9f35adcf725f36a6493c5db3048ad7a5c46e1825 | |
parent | 3c77bb5f23b2e149495c814759beab7eedeede6c (diff) | |
download | ffmpeg-ff50b1b13be965c93a9a7169edb62631a928e308.tar.gz |
swresample/swresample-test: Randomly wipe out channel counts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswresample/swresample-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libswresample/swresample-test.c b/libswresample/swresample-test.c index 8859e9412c..7e2854da7c 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) |