diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-05-11 21:10:10 +0300 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-05-11 21:13:03 +0300 |
commit | 96d616052b3d39678e477fa10610ca688f46fff9 (patch) | |
tree | 8bd31d06318bc786ea8f1d84f92090c9c860bc11 /libavfilter/formats.c | |
parent | 27506aceda8115f82f89691a4441d62a8cf24a6e (diff) | |
parent | d12b5b2f135aade4099f4b26b0fe678656158c13 (diff) |
Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'
* commit 'd12b5b2f135aade4099f4b26b0fe678656158c13':
build: Split test programs off into separate files
Some conversions done by: James Almer <jamrial@gmail.com>
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index f12dcf4783..20f45e33cc 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -683,52 +683,3 @@ int ff_parse_channel_layout(int64_t *ret, int *nret, const char *arg, *nret = av_get_channel_layout_nb_channels(chlayout); return 0; } - -#ifdef TEST - -#undef printf - -int main(void) -{ - const int64_t *cl; - char buf[512]; - int i; - const char *teststrings[] ={ - "blah", - "1", - "2", - "-1", - "60", - "65", - "1c", - "2c", - "-1c", - "60c", - "65c", - "5.1", - "stereo", - "1+1+1+1", - "1c+1c+1c+1c", - "2c+1c", - "0x3", - }; - - for (cl = avfilter_all_channel_layouts; *cl != -1; cl++) { - av_get_channel_layout_string(buf, sizeof(buf), -1, *cl); - printf("%s\n", buf); - } - - for ( i = 0; i<FF_ARRAY_ELEMS(teststrings); i++) { - int64_t layout = -1; - int count = -1; - int ret; - ret = ff_parse_channel_layout(&layout, &count, teststrings[i], NULL); - - printf ("%d = ff_parse_channel_layout(%016"PRIX64", %2d, %s);\n", ret ? -1 : 0, layout, count, teststrings[i]); - } - - return 0; -} - -#endif - |