mirror of https://github.com/mpv-player/mpv
img_format: drop message about unknown pixel formats
Too bad.
This commit is contained in:
parent
823bf0029d
commit
95d94238f4
|
@ -161,14 +161,8 @@ struct mp_imgfmt_desc mp_imgfmt_get_desc(int mpfmt)
|
||||||
{
|
{
|
||||||
enum AVPixelFormat fmt = imgfmt2pixfmt(mpfmt);
|
enum AVPixelFormat fmt = imgfmt2pixfmt(mpfmt);
|
||||||
const AVPixFmtDescriptor *pd = av_pix_fmt_desc_get(fmt);
|
const AVPixFmtDescriptor *pd = av_pix_fmt_desc_get(fmt);
|
||||||
if (!pd || fmt == AV_PIX_FMT_NONE) {
|
if (!pd || fmt == AV_PIX_FMT_NONE)
|
||||||
const char *name = mp_imgfmt_to_name(mpfmt);
|
|
||||||
if (name) {
|
|
||||||
mp_msg(MSGT_DECVIDEO, MSGL_V,
|
|
||||||
"libavutil does not know image format '%s'\n", name);
|
|
||||||
}
|
|
||||||
return (struct mp_imgfmt_desc) {0};
|
return (struct mp_imgfmt_desc) {0};
|
||||||
}
|
|
||||||
|
|
||||||
struct mp_imgfmt_desc desc = {
|
struct mp_imgfmt_desc desc = {
|
||||||
.id = mpfmt,
|
.id = mpfmt,
|
||||||
|
|
Loading…
Reference in New Issue