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

Method setExtradata

YUViewLib/src/ffmpeg/AVCodecParametersWrapper.cpp:288–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void AVCodecParametersWrapper::setExtradata(QByteArray data)
289{
290 if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 ||
291 this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60)
292 {
293 this->extradata = data;
294 auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param);
295 p->extradata = reinterpret_cast<uint8_t *>(this->extradata.data());
296 p->extradata_size = this->extradata.length();
297 }
298}
299
300void AVCodecParametersWrapper::setSize(Size size)
301{

Callers 1

decoderFFmpegMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected