File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ int main(int argc, char **argv)
114
114
for (size_t i = 0 , ostIdx = 0 ; i < ictx.streamsCount (); ++i) {
115
115
auto ist = ictx.stream (i);
116
116
auto icodecpar = ist.codecParameters ();
117
- auto ocodec = av::findEncodingCodec ( icodecpar.raw ()-> codec_id );
117
+ auto ocodec = icodecpar.decodingCodec ( );
118
118
119
119
// Source codec can be unsupprted by the target format. Transcoding required or simple skip.
120
120
if (!octx.outputFormat ().codecSupported (ocodec)) {
@@ -125,7 +125,7 @@ int main(int argc, char **argv)
125
125
126
126
auto ost = octx.addStream (ec);
127
127
ost.setCodecParameters (icodecpar);
128
- ost.codecParameters ().raw ()-> codec_tag = 0 ;
128
+ ost.codecParameters ().codecTag ( 0 ) ;
129
129
130
130
// We can omit codec checking above and got error FormatCodecUnsupported (error code or exception)
131
131
if (ec) {
You can’t perform that action at this time.
0 commit comments