OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c77bb5
)
swresample/swresample-test: Randomly wipe out channel counts
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 12 Apr 2015 20:08:52 +0000
(22:08 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 12 Apr 2015 20:21:53 +0000
(22:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample-test.c
patch
|
blob
|
history
diff --git
a/libswresample/swresample-test.c
b/libswresample/swresample-test.c
index
8859e94
..
7e2854d
100644
(file)
--- 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)