@@ -176,8 +176,7 @@ bool OutputAudio::encodeFrame( DataStream& codedFrame )
176
176
void OutputAudio::setProfile ( const Profile::ProfileDesc& desc, const AudioFrameDesc& frameDesc )
177
177
{
178
178
if ( ! desc.count ( Profile::avProfileCodec ) ||
179
- ! desc.count ( Profile::avProfileSampleFormat ) ||
180
- ! desc.count ( Profile::avProfileChannel ) )
179
+ ! desc.count ( Profile::avProfileSampleFormat ) )
181
180
{
182
181
throw std::runtime_error ( " The profile " + desc.find ( Profile::avProfileIdentificatorHuman )->second + " is invalid." );
183
182
}
@@ -192,8 +191,7 @@ void OutputAudio::setProfile( const Profile::ProfileDesc& desc, const AudioFrame
192
191
(*it).first == Profile::avProfileIdentificatorHuman ||
193
192
(*it).first == Profile::avProfileType ||
194
193
(*it).first == Profile::avProfileCodec ||
195
- (*it).first == Profile::avProfileSampleFormat ||
196
- (*it).first == Profile::avProfileChannel )
194
+ (*it).first == Profile::avProfileSampleFormat )
197
195
continue ;
198
196
199
197
try
@@ -214,8 +212,7 @@ void OutputAudio::setProfile( const Profile::ProfileDesc& desc, const AudioFrame
214
212
(*it).first == Profile::avProfileIdentificatorHuman ||
215
213
(*it).first == Profile::avProfileType ||
216
214
(*it).first == Profile::avProfileCodec ||
217
- (*it).first == Profile::avProfileSampleFormat ||
218
- (*it).first == Profile::avProfileChannel )
215
+ (*it).first == Profile::avProfileSampleFormat )
219
216
continue ;
220
217
221
218
try
0 commit comments