Unified · Split
| @@ -500,6 +500,8 @@ static void dump_stream_format(AVFormatContext *ic, int i, · 499 unmodified lines | ||
| 500 | 500 | return; |
| 501 | 501 | } |
| 502 | 502 | |
| 503 | +#if FF_API_LAVF_AVCTX | |
| 504 | +FF_DISABLE_DEPRECATION_WARNINGS | |
| 503 | 505 | // Fields which are missing from AVCodecParameters need to be taken from the AVCodecContext |
| 504 | 506 | avctx->properties = st->codec->properties; |
| 505 | 507 | avctx->codec = st->codec->codec; |
| @@ -507,6 +509,8 @@ static void dump_stream_format(AVFormatContext *ic, int i, · 1 unmodified line | ||
| 507 | 509 | avctx->qmax = st->codec->qmax; |
| 508 | 510 | avctx->coded_width = st->codec->coded_width; |
| 509 | 511 | avctx->coded_height = st->codec->coded_height; |
| 512 | +FF_ENABLE_DEPRECATION_WARNINGS | |
| 513 | +#endif | |
| 510 | 514 | |
| 511 | 515 | if (separator) |
| 512 | 516 | av_opt_set(avctx, "dump_separator", separator, 0); |
| @@ -541,7 +545,13 @@ static void dump_stream_format(AVFormatContext *ic, int i, · 28 unmodified lines | ||
| 541 | 545 | int fps = st->avg_frame_rate.den && st->avg_frame_rate.num; |
| 542 | 546 | int tbr = st->r_frame_rate.den && st->r_frame_rate.num; |
| 543 | 547 | int tbn = st->time_base.den && st->time_base.num; |
| 548 | +#if FF_API_LAVF_AVCTX | |
| 549 | +FF_DISABLE_DEPRECATION_WARNINGS | |
| 544 | 550 | int tbc = st->codec->time_base.den && st->codec->time_base.num; |
| 551 | +FF_ENABLE_DEPRECATION_WARNINGS | |
| 552 | +#else | |
| 553 | + int tbc = 0; | |
| 554 | +#endif | |
| 545 | 555 | |
| 546 | 556 | if (fps || tbr || tbn || tbc) |
| 547 | 557 | av_log(NULL, AV_LOG_INFO, "%s", separator); |
| @@ -552,8 +562,12 @@ static void dump_stream_format(AVFormatContext *ic, int i, · 4 unmodified lines | ||
| 552 | 562 | print_fps(av_q2d(st->r_frame_rate), tbn || tbc ? "tbr, " : "tbr"); |
| 553 | 563 | if (tbn) |
| 554 | 564 | print_fps(1 / av_q2d(st->time_base), tbc ? "tbn, " : "tbn"); |
| 565 | +#if FF_API_LAVF_AVCTX | |
| 566 | +FF_DISABLE_DEPRECATION_WARNINGS | |
| 555 | 567 | if (tbc) |
| 556 | 568 | print_fps(1 / av_q2d(st->codec->time_base), "tbc"); |
| 569 | +FF_ENABLE_DEPRECATION_WARNINGS | |
| 570 | +#endif | |
| 557 | 571 | } |
| 558 | 572 | |
| 559 | 573 | if (st->disposition & AV_DISPOSITION_DEFAULT) |