| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "media/formats/webm/opus_packet_builder.h" | 6 #include "media/formats/webm/opus_packet_builder.h" |
| 7 #include "media/formats/webm/webm_cluster_parser.h" | 7 #include "media/formats/webm/webm_cluster_parser.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 if (frame_count >= 2) { | 76 if (frame_count >= 2) { |
| 77 // Add another packet with VBR flag toggled. For frame counts >= 2, | 77 // Add another packet with VBR flag toggled. For frame counts >= 2, |
| 78 // VBR triggers changes to packet framing. | 78 // VBR triggers changes to packet framing. |
| 79 is_VBR = true; | 79 is_VBR = true; |
| 80 opus_packets.push_back( | 80 opus_packets.push_back( |
| 81 new OpusPacket(opus_config_num, frame_count, is_VBR)); | 81 new OpusPacket(opus_config_num, frame_count, is_VBR)); |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 | 85 |
| 86 return opus_packets.Pass(); | 86 return opus_packets; |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace media | 89 } // namespace media |
| OLD | NEW |