You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user