From 7fb49639e6b1caf5579ce9663c1ff367663f9048 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Sat, 15 Dec 2012 23:28:15 +0100 Subject: lavu: make sure av_pix_fmt_desc_next returns a valid pix fmt. This is required because there are some "holes" in the list for compatibility with the fork. The commit also removes the now unecessary check from cmdutils. Found-by: wm4 --- cmdutils.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index abe5601134..fb01a947a7 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -1195,8 +1195,6 @@ int show_pix_fmts(void *optctx, const char *opt, const char *arg) while ((pix_desc = av_pix_fmt_desc_next(pix_desc))) { enum AVPixelFormat pix_fmt = av_pix_fmt_desc_get_id(pix_desc); - if(!pix_desc->name) - continue; printf("%c%c%c%c%c %-16s %d %2d\n", sws_isSupportedInput (pix_fmt) ? 'I' : '.', sws_isSupportedOutput(pix_fmt) ? 'O' : '.', -- cgit v1.2.3