diracdec: do not memset the entire coefficient buffer for HQ pictures
This is now handled by the slice decoding function. Signed-off-by: Rostislav Pehlivanov <rpehlivanov@obe.tv>
This commit is contained in:
parent
dcad4677d6
commit
2094562923
1 changed files with 5 additions and 3 deletions
|
|
@ -1816,9 +1816,11 @@ static int dirac_decode_frame_internal(DiracContext *s)
|
|||
|
||||
if (s->low_delay) {
|
||||
/* [DIRAC_STD] 13.5.1 low_delay_transform_data() */
|
||||
for (comp = 0; comp < 3; comp++) {
|
||||
Plane *p = &s->plane[comp];
|
||||
memset(p->idwt.buf, 0, p->idwt.stride * p->idwt.height);
|
||||
if (!s->hq_picture) {
|
||||
for (comp = 0; comp < 3; comp++) {
|
||||
Plane *p = &s->plane[comp];
|
||||
memset(p->idwt.buf, 0, p->idwt.stride * p->idwt.height);
|
||||
}
|
||||
}
|
||||
if (!s->zero_res) {
|
||||
if ((ret = decode_lowdelay(s)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue