X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fformats.c;h=20f45e33cc7be47842c137d7e9cae44d4dd997fd;hb=0e38723220824d849ca37090e61d75633a16858a;hp=f12dcf47834b65a409df64e54434e5e2a9295ac6;hpb=c0b51aa2d2c66cb52577a287b3b821e89f214514;p=ffmpeg diff --git a/libavfilter/formats.c b/libavfilter/formats.c index f12dcf47834..20f45e33cc7 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