Transcode, limit output birate to the media bitrate (no need to upscale)

This commit is contained in:
emeric
2014-09-01 14:59:07 +02:00
parent 07624995e7
commit c8837d6d68
10 changed files with 84 additions and 30 deletions
+4 -2
View File
@@ -20,12 +20,13 @@ class Stream
typedef std::size_t Id;
Stream(Id id, Type type, const std::string& lang, const std::string& desc)
: _id(id), _type(type), _language(lang), _desc(desc) {}
Stream(Id id, Type type, std::size_t bitrate, const std::string& lang, const std::string& desc)
: _id(id), _type(type), _bitrate(bitrate), _language(lang), _desc(desc) {}
// Accessors
Id getId() const { return _id;}
Type getType() const { return _type;}
std::size_t getBitrate() const { return _bitrate;}
const std::string& getLanguage() const { return _language;}
const std::string& getDesc() const { return _desc;}
@@ -33,6 +34,7 @@ class Stream
Id _id;
Type _type;
std::size_t _bitrate;
std::string _language;
std::string _desc;