| Index: native_client_sdk/src/examples/api/video_encode/video_encode.cc
|
| diff --git a/ppapi/examples/video_encode/video_encode.cc b/native_client_sdk/src/examples/api/video_encode/video_encode.cc
|
| similarity index 99%
|
| copy from ppapi/examples/video_encode/video_encode.cc
|
| copy to native_client_sdk/src/examples/api/video_encode/video_encode.cc
|
| index 66d141a525648ef1551707440e20909ed560e721..7c7926e63f8ae1c271d66ba5e07a3088d813e68d 100644
|
| --- a/ppapi/examples/video_encode/video_encode.cc
|
| +++ b/native_client_sdk/src/examples/api/video_encode/video_encode.cc
|
| @@ -294,8 +294,10 @@ void VideoEncoderInstance::OnEncoderProbed(
|
| }
|
|
|
| int32_t idx = 0;
|
| - for (const PP_VideoProfileDescription& profile : profiles)
|
| + for (int32_t i = 0; i < profiles.size(); i++) {
|
| + const PP_VideoProfileDescription& profile = profiles[i];
|
| js_profiles.Set(idx++, pp::Var(VideoProfileToString(profile.profile)));
|
| + }
|
| PostMessage(dict);
|
| }
|
|
|
|
|