File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,13 @@ InputFile& InputFile::analyse()
123
123
return *this ;
124
124
}
125
125
126
+ AVMediaType InputFile::getStreamType ( size_t index )
127
+ {
128
+ if ( index >= m_formatContext->nb_streams )
129
+ return AVMEDIA_TYPE_UNKNOWN;
130
+ return m_formatContext->streams [index]->codec ->codec_type ;
131
+ }
132
+
126
133
InputStream& InputFile::getStream ( size_t index )
127
134
{
128
135
return m_inputStreams.at ( index );
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ class AvExport InputFile
32
32
// / get file properties
33
33
const Properties& getProperties () const { return m_properties; }
34
34
35
+ AVMediaType getStreamType ( size_t index );
36
+
35
37
::avtranscoder::InputStream& getStream ( size_t index );
36
38
37
39
protected:
You can’t perform that action at this time.
0 commit comments