| 322 | } |
| 323 | |
| 324 | void AVCodecParametersWrapper::setProfileLevel(int profile, int level) |
| 325 | { |
| 326 | if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 || |
| 327 | this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60) |
| 328 | { |
| 329 | auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param); |
| 330 | p->profile = profile; |
| 331 | p->level = level; |
| 332 | this->profile = profile; |
| 333 | this->level = level; |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | void AVCodecParametersWrapper::setSampleAspectRatio(int num, int den) |
| 338 | { |