avcodec/vp9: Use separate memset for counts.eob
Makes no real difference, but maybe scares coverity less (CID1297578) Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
670702f91d
commit
5e1d530f91
@ -867,7 +867,8 @@ static int decode_frame_header(AVCodecContext *ctx,
|
||||
}
|
||||
|
||||
if (s->keyframe || s->intraonly) {
|
||||
memset(s->counts.coef, 0, sizeof(s->counts.coef) + sizeof(s->counts.eob));
|
||||
memset(s->counts.coef, 0, sizeof(s->counts.coef));
|
||||
memset(s->counts.eob, 0, sizeof(s->counts.eob));
|
||||
} else {
|
||||
memset(&s->counts, 0, sizeof(s->counts));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user