Commit e313dedf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: print picture format name when unsupported (refs #7994)

parent 08118c7b
......@@ -927,8 +927,9 @@ static void ffmpeg_CopyPicture( decoder_t *p_dec,
}
else
{
msg_Err( p_dec, "don't know how to convert chroma %i",
p_sys->p_context->pix_fmt );
const char *name = av_get_pix_fmt_name( p_sys->p_context->pix_fmt );
msg_Err( p_dec, "Unsupported decoded output format %d (%s)",
p_sys->p_context->pix_fmt, name ? name : "unknown" );
p_dec->b_error = 1;
}
}
......
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