Skip to content
Snippets Groups Projects
Commit ff50b1b1 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

swresample/swresample-test: Randomly wipe out channel counts

parent 3c77bb5f
No related branches found
No related tags found
No related merge requests found
...@@ -314,6 +314,11 @@ int main(int argc, char **argv){ ...@@ -314,6 +314,11 @@ int main(int argc, char **argv){
fprintf(stderr, "Failed to init backw_ctx\n"); fprintf(stderr, "Failed to init backw_ctx\n");
return 1; 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) if(swr_init( forw_ctx) < 0)
fprintf(stderr, "swr_init(->) failed\n"); fprintf(stderr, "swr_init(->) failed\n");
if(swr_init(backw_ctx) < 0) if(swr_init(backw_ctx) < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment