summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2015-03-21 00:48:29 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-21 07:48:55 +0000
commite9faf30f4261a10fb0f964fa91d8822acebd53e0 (patch)
treeb7467ac8b75f0024c34f18ec6231ad7f20113caa /ppapi
parentdb214180d73e6516d8b2de4f87b8a1ae01bdd45f (diff)
downloadchromium_src-e9faf30f4261a10fb0f964fa91d8822acebd53e0.zip
chromium_src-e9faf30f4261a10fb0f964fa91d8822acebd53e0.tar.gz
chromium_src-e9faf30f4261a10fb0f964fa91d8822acebd53e0.tar.bz2
Fix size calcuation in video_decoder_resource.cc
VideoDecoderResource::VideoDecoderResource() is only clearing 1/4 of the decode_ids_ array, because the type of the array is uint32_t, and we're passing the number of elements, not number of bytes. BUG=469182 Review URL: https://codereview.chromium.org/1021053005 Cr-Commit-Position: refs/heads/master@{#321698}
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/proxy/video_decoder_resource.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/proxy/video_decoder_resource.cc b/ppapi/proxy/video_decoder_resource.cc
index 2dbe60e..487b3ba 100644
--- a/ppapi/proxy/video_decoder_resource.cc
+++ b/ppapi/proxy/video_decoder_resource.cc
@@ -73,7 +73,7 @@ VideoDecoderResource::VideoDecoderResource(Connection connection,
// just testing |decoder_last_error_|.
decoder_last_error_(PP_ERROR_FAILED) {
// Clear the decode_ids_ array.
- memset(decode_ids_, 0, arraysize(decode_ids_));
+ memset(decode_ids_, 0, sizeof(decode_ids_));
SendCreate(RENDERER, PpapiHostMsg_VideoDecoder_Create());
}