Commit b5ef6f8e authored by Michael Niedermayer's avatar Michael Niedermayer

Fix crash in ffmpeg.c with PIX_FMT_NONE

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0c72180e
......@@ -657,6 +657,7 @@ static void choose_pixel_fmt(AVStream *st, AVCodec *codec)
break;
}
if (*p == -1) {
if(st->codec->pix_fmt != PIX_FMT_NONE)
av_log(NULL, AV_LOG_WARNING,
"Incompatible pixel format '%s' for codec '%s', auto-selecting format '%s'\n",
av_pix_fmt_descriptors[st->codec->pix_fmt].name,
......
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