aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-12 22:08:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-25 15:06:54 +0200
commit164ababc623884c862d01e98824c19f91919f0be (patch)
tree9c028e4f6c277503ecfb17d18a2bfee1db97c5f5 /libswresample
parent115961acc15c5d11b4b4b58a906580dd176da2f0 (diff)
downloadffmpeg-164ababc623884c862d01e98824c19f91919f0be.tar.gz
swresample/swresample-test: Randomly wipe out channel counts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit ff50b1b13be965c93a9a7169edb62631a928e308) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/swresample-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libswresample/swresample-test.c b/libswresample/swresample-test.c
index c0162cd646..694880648a 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)