| 335 | } |
| 336 | |
| 337 | void AVCodecParametersWrapper::setSampleAspectRatio(int num, int den) |
| 338 | { |
| 339 | if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 || |
| 340 | this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60) |
| 341 | { |
| 342 | auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(param); |
| 343 | AVRational ratio; |
| 344 | ratio.num = num; |
| 345 | ratio.den = den; |
| 346 | p->sample_aspect_ratio = ratio; |
| 347 | this->sample_aspect_ratio = ratio; |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | void AVCodecParametersWrapper::update() |
| 352 | { |