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,9 +1816,11 @@ static int dirac_decode_frame_internal(DiracContext *s) ...@@ -1816,9 +1816,11 @@ 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() */
for (comp = 0; comp < 3; comp++) { if (!s->hq_picture) {
Plane *p = &s->plane[comp]; for (comp = 0; comp < 3; comp++) {
memset(p->idwt.buf, 0, p->idwt.stride * p->idwt.height); Plane *p = &s->plane[comp];
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)
......
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