| 286 | } |
| 287 | |
| 288 | void 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 | |
| 300 | void AVCodecParametersWrapper::setSize(Size size) |
| 301 | { |