| 311 | } |
| 312 | |
| 313 | void AVCodecParametersWrapper::setAVPixelFormat(AVPixelFormat format) |
| 314 | { |
| 315 | if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 || |
| 316 | this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60) |
| 317 | { |
| 318 | auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param); |
| 319 | p->format = format; |
| 320 | this->format = format; |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | void AVCodecParametersWrapper::setProfileLevel(int profile, int level) |
| 325 | { |