| 263 | } |
| 264 | |
| 265 | AVCodecID AVStreamWrapper::getCodecID() |
| 266 | { |
| 267 | this->update(); |
| 268 | if (this->stream == nullptr) |
| 269 | return AV_CODEC_ID_NONE; |
| 270 | |
| 271 | if (this->libVer.avformat.major <= 56 || !this->codecpar) |
| 272 | return this->codec.getCodecID(); |
| 273 | else |
| 274 | return this->codecpar.getCodecID(); |
| 275 | } |
| 276 | |
| 277 | AVCodecContextWrapper &AVStreamWrapper::getCodec() |
| 278 | { |
no test coverage detected