Commit 2be0eca2 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

avcodec: simplify the log generation

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7ac323c5
......@@ -1173,16 +1173,14 @@ static int lavc_dr_GetFrame(struct AVCodecContext *ctx, AVFrame *frame,
if (pic->p[i].i_pitch % aligns[i])
{
if (!atomic_exchange(&sys->b_dr_failure, true))
msg_Warn(dec, "plane %d: pitch not aligned (%d%%%d): %s",
i, pic->p[i].i_pitch, aligns[i],
"disabling direct rendering");
msg_Warn(dec, "plane %d: pitch not aligned (%d%%%d): disabling direct rendering",
i, pic->p[i].i_pitch, aligns[i]);
goto error;
}
if (((uintptr_t)pic->p[i].p_pixels) % aligns[i])
{
if (!atomic_exchange(&sys->b_dr_failure, true))
msg_Warn(dec, "plane %d not aligned: %s", i,
"disabling direct rendering");
msg_Warn(dec, "plane %d not aligned: disabling direct rendering", i);
goto error;
}
}
......
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