@@ -195,12 +195,6 @@ void OutputVideo::setProfile( Profile::ProfileDesc& desc, const avtranscoder::Im
195
195
throw std::runtime_error ( " The profile " + desc[ Profile::avProfileIdentificatorHuman ] + " is invalid." );
196
196
}
197
197
198
- if ( ( desc.count ( Profile::avProfileWidth ) && std::strtoul ( desc[ Profile::avProfileWidth ].c_str (), NULL , 0 ) != imageDesc.getWidth () ) ||
199
- ( desc.count ( Profile::avProfileHeight ) && std::strtoul ( desc[ Profile::avProfileHeight ].c_str (), NULL , 0 ) != imageDesc.getHeight () ) )
200
- {
201
- throw std::runtime_error ( " Invalid imageDesc with the profile " + desc[ Profile::avProfileIdentificatorHuman ] + " ." );
202
- }
203
-
204
198
_videoDesc.setVideoCodec ( desc[ Profile::avProfileCodec ] );
205
199
206
200
const size_t frameRate = std::strtoul ( desc[ Profile::avProfileFrameRate ].c_str (), NULL , 0 );
@@ -215,8 +209,6 @@ void OutputVideo::setProfile( Profile::ProfileDesc& desc, const avtranscoder::Im
215
209
(*it).first == Profile::avProfileType ||
216
210
(*it).first == Profile::avProfileCodec ||
217
211
(*it).first == Profile::avProfilePixelFormat ||
218
- (*it).first == Profile::avProfileWidth ||
219
- (*it).first == Profile::avProfileHeight ||
220
212
(*it).first == Profile::avProfileFrameRate )
221
213
continue ;
222
214
@@ -239,8 +231,6 @@ void OutputVideo::setProfile( Profile::ProfileDesc& desc, const avtranscoder::Im
239
231
(*it).first == Profile::avProfileType ||
240
232
(*it).first == Profile::avProfileCodec ||
241
233
(*it).first == Profile::avProfilePixelFormat ||
242
- (*it).first == Profile::avProfileWidth ||
243
- (*it).first == Profile::avProfileHeight ||
244
234
(*it).first == Profile::avProfileFrameRate )
245
235
continue ;
246
236
0 commit comments