| 264 | } |
| 265 | |
| 266 | void 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 | |
| 277 | void AVCodecParametersWrapper::setAVCodecID(AVCodecID id) |
| 278 | { |