Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Unified Diff: media/cast/video_receiver/codecs/vp8/vp8_decoder.cc

Issue 62843002: Cast: Added support for AES-CTR crypto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync TOT Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/video_receiver/video_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_receiver/codecs/vp8/vp8_decoder.cc
diff --git a/media/cast/video_receiver/codecs/vp8/vp8_decoder.cc b/media/cast/video_receiver/codecs/vp8/vp8_decoder.cc
index 8ca6acfc15b1d5aa7405c140482eeea691801ef4..d9ad3f1389bb252bce3932a799bec999cdfb5598 100644
--- a/media/cast/video_receiver/codecs/vp8/vp8_decoder.cc
+++ b/media/cast/video_receiver/codecs/vp8/vp8_decoder.cc
@@ -42,11 +42,12 @@ bool Vp8Decoder::Decode(const EncodedVideoFrame* encoded_frame,
vpx_codec_iter_t iter = NULL;
vpx_image_t* img;
- if (vpx_codec_decode(decoder_.get(),
- encoded_frame->data.data(),
- static_cast<unsigned int>(encoded_frame->data.size()),
- 0,
- 1 /* real time*/)) {
+ if (vpx_codec_decode(
+ decoder_.get(),
+ reinterpret_cast<const uint8*>(encoded_frame->data.data()),
+ static_cast<unsigned int>(encoded_frame->data.size()),
+ 0,
+ 1 /* real time*/)) {
VLOG(1) << "Failed to decode VP8 frame.";
return false;
}
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/video_receiver/video_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698