File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#define AVTRANSCODER_VERSION_MAJOR 0
5
5
#define AVTRANSCODER_VERSION_MINOR 14
6
- #define AVTRANSCODER_VERSION_MICRO 1
6
+ #define AVTRANSCODER_VERSION_MICRO 2
7
7
8
8
#include < AvTranscoder/system.hpp>
9
9
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ size_t FileProperties::getBitRate() const
210
210
return _avFormatContext->bit_rate ;
211
211
}
212
212
213
- size_t FileProperties::getFileSize () const
213
+ uint64_t FileProperties::getFileSize () const
214
214
{
215
215
std::ifstream in (getFilename ().c_str (), std::ios::binary | std::ios::ate);
216
216
return in.tellg ();
Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ class AvExport FileProperties
49
49
double getStartTime () const ;
50
50
float getDuration () const ; // /< in seconds, 0 if not available
51
51
size_t getBitRate () const ; // /< total stream bitrate in bit/s, 0 if not available (result of a computation by ffmpeg)
52
- size_t getFileSize () const ; // /< in bytes
52
+ /* *
53
+ * @note Use uint64_t instead of size_t to ensure 64 bits size on 32-bits OS so we can manage Files > 4Go
54
+ */
55
+ uint64_t getFileSize () const ; // /< in bytes
53
56
size_t getPacketSize () const ;
54
57
55
58
const PropertyVector& getMetadatas () const { return _metadatas; }
You can’t perform that action at this time.
0 commit comments