Commit b1665d3d authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

vout: fix memory leak in ThreadReinit() in case of similar video format

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 2e45e74f
......@@ -1417,8 +1417,10 @@ static int ThreadReinit(vout_thread_t *vout,
/* We ignore crop/ar changes at this point, they are dynamically supported */
VideoFormatCopyCropAr(&vout->p->original, &original);
if (video_format_IsSimilar(&original, &vout->p->original)) {
if (cfg->dpb_size <= vout->p->dpb_size)
if (cfg->dpb_size <= vout->p->dpb_size) {
msg_Warn(vout, "DPB need to be increased");
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