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

[fix]: correctly retrieve the fileSize on 32 bits OS#306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
adoussot merged 4 commits intoavTranscoder:developfromadoussot:develop
Jul 2, 2018
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionsrc/AvTranscoder/common.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@

#define AVTRANSCODER_VERSION_MAJOR 0
#define AVTRANSCODER_VERSION_MINOR 14
#define AVTRANSCODER_VERSION_MICRO1
#define AVTRANSCODER_VERSION_MICRO2

#include <AvTranscoder/system.hpp>

Expand Down
2 changes: 1 addition & 1 deletionsrc/AvTranscoder/properties/FileProperties.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -210,7 +210,7 @@ size_t FileProperties::getBitRate() const
return _avFormatContext->bit_rate;
}

size_t FileProperties::getFileSize() const
uint64_t FileProperties::getFileSize() const
{
std::ifstream in(getFilename().c_str(), std::ios::binary | std::ios::ate);
return in.tellg();
Expand Down
5 changes: 4 additions & 1 deletionsrc/AvTranscoder/properties/FileProperties.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,7 +49,10 @@ class AvExport FileProperties
doublegetStartTime()const;
floatgetDuration()const;///< in seconds, 0 if not available
size_tgetBitRate()const;///< total stream bitrate in bit/s, 0 if not available (result of a computation by ffmpeg)
size_tgetFileSize()const;///< in bytes
/**
* @note Use uint64_t instead of size_t to ensure 64 bits size on 32-bits OS so we can manage Files > 4Go
*/
uint64_tgetFileSize()const;///< in bytes
size_tgetPacketSize()const;

const PropertyVector&getMetadatas()const {return _metadatas; }
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp