[FFmpeg-cvslog] avcodec/vp9: Use separate memset for counts.eob

Michael Niedermayer git at videolan.org
Fri May 15 16:30:01 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 15 11:10:10 2015 +0200| [5e1d530f911833402c2098f52ee8066efef0c496] | committer: Michael Niedermayer

avcodec/vp9: Use separate memset for counts.eob

Makes no real difference, but maybe scares coverity less (CID1297578)

Reviewed-by: "Ronald S. Bultje" <rsbultje at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e1d530f911833402c2098f52ee8066efef0c496
---

 libavcodec/vp9.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index db3f541..4655e9a 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));
     }



More information about the ffmpeg-cvslog mailing list