Chromium Code Reviews| Index: remoting/codec/audio_decoder_verbatim.cc |
| diff --git a/remoting/codec/audio_decoder_verbatim.cc b/remoting/codec/audio_decoder_verbatim.cc |
| index 903cb3f298b824a34928ac795c8566521321f9fa..ca2f97c30f7825e40e3838f3fa61344898c1518d 100644 |
| --- a/remoting/codec/audio_decoder_verbatim.cc |
| +++ b/remoting/codec/audio_decoder_verbatim.cc |
| @@ -21,7 +21,9 @@ scoped_ptr<AudioPacket> AudioDecoderVerbatim::Decode( |
| if ((packet->encoding() != AudioPacket::ENCODING_RAW) || |
| (packet->data_size() != 1) || |
| (packet->sampling_rate() == AudioPacket::SAMPLING_RATE_INVALID) || |
| - (packet->bytes_per_sample() == AudioPacket::BYTES_PER_SAMPLE_INVALID)) { |
| + (packet->bytes_per_sample() != AudioPacket::BYTES_PER_SAMPLE_2) || |
| + (packet->channels() != AudioPacket::CHANNELS_STEREO)) { |
| + LOG(WARNING) << "Verbatim decoder received a corrupt packet."; |
|
Wez
2012/08/20 23:23:51
nit: a correct -> an invalid
kxing
2012/08/21 14:25:53
Done.
|
| return scoped_ptr<AudioPacket>(); |
| } |
| return packet.Pass(); |