diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 11:10:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 13:03:52 +0200 |
commit | 5e1d530f911833402c2098f52ee8066efef0c496 (patch) | |
tree | e3fac62e290fca3e8852e5b413f181e2faa4d0d4 /libavcodec | |
parent | 670702f91dfa013e3b6193991b0a0a1796ecc9eb (diff) | |
download | ffmpeg-5e1d530f911833402c2098f52ee8066efef0c496.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index db3f541c5e..4655e9a7f8 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -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)); } |