[FFmpeg-devel] [PATCH] display warning if rawvideo encoder cannot find codec_tag for the given input format
Stefano Sabatini
stefano.sabatini-lala at poste.it
Wed Mar 23 17:27:57 CET 2011
On date Wednesday 2011-03-23 17:21:33 +0100, Stefano Sabatini encoded:
> On date Wednesday 2011-03-23 23:11:50 +1100, Peter Ross encoded:
[...]
> Also I suggest:
>
> char *pix_fmt_name = (unsigned int)avctx->pix_fmt < PIX_FMT_NB ? "unknown";
Of course this was:
char *pix_fmt_name = (unsigned int)avctx->pix_fmt < PIX_FMT_NB ?
av_pix_fmt_descriptors[avctx->pix_fmt].name : "unknown";
and I somehow miss av_get_pix_fmt_name() ;-)
> av_log(avctx, AV_LOG_WARNING,
> "No codec_tag associated with pix_fmt '%s' and index %i\n",
> pix_fmt_name, avctx->pix_fmt);
>
> but do as if fits you better.
>
> > + }
> > return 0;
> > }
>
> LGTM otherwise.
--
FFmpeg = Fanciful and Formidable Mysterious Purposeless Evanescent Guru
More information about the ffmpeg-devel
mailing list