Commit 86159703 authored by Michael Niedermayer's avatar Michael Niedermayer

ff_find_pix_fmt: return NONE for the "not found" case.

Found-by: durandal_1707
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ff6b3400
......@@ -87,7 +87,7 @@ enum AVPixelFormat ff_find_pix_fmt(const PixelFormatTag *tags, unsigned int four
return tags->pix_fmt;
tags++;
}
return AV_PIX_FMT_YUV420P;
return AV_PIX_FMT_NONE;
}
static av_cold int raw_init_decoder(AVCodecContext *avctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment