Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f7508f

Browse files
author
Clement Champetier
committed
VideoProperties: refactor how to getNbFrames
Else statement was not necessary!
1 parenta61d95f commit0f7508f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -392,16 +392,14 @@ size_t VideoProperties::getNbFrames() const
392392
LOG_INFO("Need a deeper analysis: see eAnalyseLevelFirstGop.")
393393
return0;
394394
}
395-
else
395+
396+
if(! _nbFrames)
396397
{
397-
if(! _nbFrames)
398-
{
399-
LOG_INFO("Estimate the number of frames from the fps and the duration.")
400-
returngetFps() *getDuration();
401-
}
402-
LOG_INFO("Get the exact number of frames.")
403-
return _nbFrames;
398+
LOG_INFO("Estimate the number of frames from the fps and the duration.")
399+
returngetFps() *getDuration();
404400
}
401+
LOG_INFO("Get the exact number of frames.")
402+
return _nbFrames;
405403
}
406404

407405
size_tVideoProperties::getTicksPerFrame()const

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp