Commit 20945629 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov Committed by Rostislav Pehlivanov

diracdec: do not memset the entire coefficient buffer for HQ pictures

This is now handled by the slice decoding function.
Signed-off-by: 's avatarRostislav Pehlivanov <rpehlivanov@obe.tv>
parent dcad4677
...@@ -1816,10 +1816,12 @@ static int dirac_decode_frame_internal(DiracContext *s) ...@@ -1816,10 +1816,12 @@ static int dirac_decode_frame_internal(DiracContext *s)
if (s->low_delay) { if (s->low_delay) {
/* [DIRAC_STD] 13.5.1 low_delay_transform_data() */ /* [DIRAC_STD] 13.5.1 low_delay_transform_data() */
if (!s->hq_picture) {
for (comp = 0; comp < 3; comp++) { for (comp = 0; comp < 3; comp++) {
Plane *p = &s->plane[comp]; Plane *p = &s->plane[comp];
memset(p->idwt.buf, 0, p->idwt.stride * p->idwt.height); memset(p->idwt.buf, 0, p->idwt.stride * p->idwt.height);
} }
}
if (!s->zero_res) { if (!s->zero_res) {
if ((ret = decode_lowdelay(s)) < 0) if ((ret = decode_lowdelay(s)) < 0)
return ret; return ret;
......
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