| 275 | } |
| 276 | |
| 277 | void AVCodecParametersWrapper::setAVCodecID(AVCodecID id) |
| 278 | { |
| 279 | if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 || |
| 280 | this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60) |
| 281 | { |
| 282 | auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param); |
| 283 | p->codec_id = id; |
| 284 | this->codec_id = id; |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | void AVCodecParametersWrapper::setExtradata(QByteArray data) |
| 289 | { |