commit | ae1a58bba4f926d149a5f39243269c3f6625f494 | [log] [tgz] |
---|---|---|
author | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Tue Jan 22 04:44:30 2013 +0000 |
committer | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Tue Jan 22 04:44:30 2013 +0000 |
tree | e1c3002386bd3d7127ca7fe5eeb3e114d7997048 | |
parent | 899699e6f3eb4c26c211b864115065d34332d69c [diff] [blame] |
Replace AudioFrame's operator= with CopyFrom(). Enforce DISALLOW_COPY_AND_ASSIGN to catch offenders. Review URL: https://webrtc-codereview.appspot.com/1031007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3395 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/utility/source/coder.cc b/webrtc/modules/utility/source/coder.cc index 31d528d..a610daa 100644 --- a/webrtc/modules/utility/source/coder.cc +++ b/webrtc/modules/utility/source/coder.cc
@@ -92,7 +92,8 @@ { // Fake a timestamp in case audio doesn't contain a correct timestamp. // Make a local copy of the audio frame since audio is const - AudioFrame audioFrame = audio; + AudioFrame audioFrame; + audioFrame.CopyFrom(audio); audioFrame.timestamp_ = _encodeTimestamp; _encodeTimestamp += audioFrame.samples_per_channel_;