| 340 | } |
| 341 | |
| 342 | void AVStreamWrapper::update() |
| 343 | { |
| 344 | if (this->stream == nullptr) |
| 345 | return; |
| 346 | |
| 347 | // Copy values from the source pointer |
| 348 | if (libVer.avformat.major == 56) |
| 349 | { |
| 350 | auto p = reinterpret_cast<AVStream_56 *>(this->stream); |
| 351 | this->index = p->index; |
| 352 | this->id = p->id; |
| 353 | this->codec = AVCodecContextWrapper(p->codec, libVer); |
| 354 | this->time_base = p->time_base; |
| 355 | this->start_time = p->start_time; |
| 356 | this->duration = p->duration; |
| 357 | this->nb_frames = p->nb_frames; |
| 358 | this->disposition = p->nb_frames; |
| 359 | this->discard = p->discard; |
| 360 | this->sample_aspect_ratio = p->sample_aspect_ratio; |
| 361 | this->avg_frame_rate = p->avg_frame_rate; |
| 362 | this->nb_side_data = p->nb_side_data; |
| 363 | this->event_flags = p->event_flags; |
| 364 | } |
| 365 | else if (libVer.avformat.major == 57) |
| 366 | { |
| 367 | auto p = reinterpret_cast<AVStream_57 *>(this->stream); |
| 368 | this->index = p->index; |
| 369 | this->id = p->id; |
| 370 | this->codec = AVCodecContextWrapper(p->codec, libVer); |
| 371 | this->time_base = p->time_base; |
| 372 | this->start_time = p->start_time; |
| 373 | this->duration = p->duration; |
| 374 | this->nb_frames = p->nb_frames; |
| 375 | this->disposition = p->nb_frames; |
| 376 | this->discard = p->discard; |
| 377 | this->sample_aspect_ratio = p->sample_aspect_ratio; |
| 378 | this->avg_frame_rate = p->avg_frame_rate; |
| 379 | this->nb_side_data = p->nb_side_data; |
| 380 | this->event_flags = p->event_flags; |
| 381 | this->codecpar = AVCodecParametersWrapper(p->codecpar, libVer); |
| 382 | } |
| 383 | else if (libVer.avformat.major == 58) |
| 384 | { |
| 385 | auto p = reinterpret_cast<AVStream_58 *>(this->stream); |
| 386 | this->index = p->index; |
| 387 | this->id = p->id; |
| 388 | this->codec = AVCodecContextWrapper(p->codec, libVer); |
| 389 | this->time_base = p->time_base; |
| 390 | this->start_time = p->start_time; |
| 391 | this->duration = p->duration; |
| 392 | this->nb_frames = p->nb_frames; |
| 393 | this->disposition = p->nb_frames; |
| 394 | this->discard = p->discard; |
| 395 | this->sample_aspect_ratio = p->sample_aspect_ratio; |
| 396 | this->avg_frame_rate = p->avg_frame_rate; |
| 397 | this->nb_side_data = p->nb_side_data; |
| 398 | this->event_flags = p->event_flags; |
| 399 | this->codecpar = AVCodecParametersWrapper(p->codecpar, libVer); |
no test coverage detected