Skip to content

Commit e8f0e7f

Browse files
author
Clement Champetier
committed
OutputVideo: refactoring setProfile
1 parent e3ce42d commit e8f0e7f

File tree

1 file changed

+16
-30
lines changed

1 file changed

+16
-30
lines changed

src/AvTranscoder/EssenceStream/OutputVideo.cpp

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -201,21 +201,14 @@ void OutputVideo::setProfile( Profile::ProfileDesc& desc, const avtranscoder::Im
201201

202202
for( Profile::ProfileDesc::iterator it = desc.begin(); it != desc.end(); ++it )
203203
{
204-
if( (*it).first == Profile::avProfileIdentificator )
205-
continue;
206-
if( (*it).first == Profile::avProfileIdentificatorHuman )
207-
continue;
208-
if( (*it).first == Profile::avProfileType )
209-
continue;
210-
if( (*it).first == Profile::avProfileCodec )
211-
continue;
212-
if( (*it).first == Profile::avProfilePixelFormat )
213-
continue;
214-
if( (*it).first == Profile::avProfileWidth )
215-
continue;
216-
if( (*it).first == Profile::avProfileHeight )
217-
continue;
218-
if( (*it).first == Profile::avProfileFrameRate )
204+
if( (*it).first == Profile::avProfileIdentificator ||
205+
(*it).first == Profile::avProfileIdentificatorHuman ||
206+
(*it).first == Profile::avProfileType ||
207+
(*it).first == Profile::avProfileCodec ||
208+
(*it).first == Profile::avProfilePixelFormat ||
209+
(*it).first == Profile::avProfileWidth ||
210+
(*it).first == Profile::avProfileHeight||
211+
(*it).first == Profile::avProfileFrameRate)
219212
continue;
220213

221214
try
@@ -232,21 +225,14 @@ void OutputVideo::setProfile( Profile::ProfileDesc& desc, const avtranscoder::Im
232225

233226
for( Profile::ProfileDesc::iterator it = desc.begin(); it != desc.end(); ++it )
234227
{
235-
if( (*it).first == Profile::avProfileIdentificator )
236-
continue;
237-
if( (*it).first == Profile::avProfileIdentificatorHuman )
238-
continue;
239-
if( (*it).first == Profile::avProfileType )
240-
continue;
241-
if( (*it).first == Profile::avProfileCodec )
242-
continue;
243-
if( (*it).first == Profile::avProfilePixelFormat )
244-
continue;
245-
if( (*it).first == Profile::avProfileWidth )
246-
continue;
247-
if( (*it).first == Profile::avProfileHeight )
248-
continue;
249-
if( (*it).first == Profile::avProfileFrameRate )
228+
if( (*it).first == Profile::avProfileIdentificator ||
229+
(*it).first == Profile::avProfileIdentificatorHuman ||
230+
(*it).first == Profile::avProfileType ||
231+
(*it).first == Profile::avProfileCodec ||
232+
(*it).first == Profile::avProfilePixelFormat ||
233+
(*it).first == Profile::avProfileWidth ||
234+
(*it).first == Profile::avProfileHeight||
235+
(*it).first == Profile::avProfileFrameRate)
250236
continue;
251237

252238
try

0 commit comments

Comments
 (0)