MCPcopy Create free account
hub / github.com/IENT/YUView / setAVMediaType

Method setAVMediaType

YUViewLib/src/ffmpeg/AVCodecParametersWrapper.cpp:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void AVCodecParametersWrapper::setAVMediaType(AVMediaType type)
267{
268 if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 ||
269 this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60)
270 {
271 auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param);
272 p->codec_type = type;
273 this->codec_type = type;
274 }
275}
276
277void AVCodecParametersWrapper::setAVCodecID(AVCodecID id)
278{

Callers 1

decoderFFmpegMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected