We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f35296 commit c43508cCopy full SHA for c43508c
src/AvTranscoder/EssenceStructures/AudioFrame.hpp
@@ -4,6 +4,7 @@
4
#include <AvTranscoder/common.hpp>
5
6
#include "Frame.hpp"
7
+#include <AvTranscoder/Profile.hpp>
8
9
namespace avtranscoder
10
{
@@ -28,6 +29,12 @@ class AvExport AudioFrameDesc
28
29
30
return ( m_sampleRate / m_fps ) * m_channels * av_get_bytes_per_sample( m_sampleFormat );
31
}
32
+
33
+ void setParameters( const Profile::ProfileDesc& desc )
34
+ {
35
+ if( desc.find( Profile::avProfileSampleFormat ) != desc.end() )
36
+ setSampleFormat( desc.find( Profile::avProfileSampleFormat )->second );
37
+ }
38
39
size_t getSampleRate() const { return m_sampleRate; }
40
size_t getChannels () const { return m_channels; }
0 commit comments