Showing the changes to libavfilter/src_buffer.c (1 of 2 files). Show all
Unified · Split
| @@ -607,7 +607,9 @@ int av_asrc_buffer_add_samples(AVFilterContext *ctx, · 606 unmodified lines | ||
| 607 | 607 | samplesref->pts = pts; |
| 608 | 608 | samplesref->audio->sample_rate = sample_rate; |
| 609 | 609 | |
| 610 | + AV_NOWARN_DEPRECATED( | |
| 610 | 611 | return av_asrc_buffer_add_audio_buffer_ref(ctx, samplesref, 0); |
| 612 | + ) | |
| 611 | 613 | } |
| 612 | 614 | |
| 613 | 615 | int av_asrc_buffer_add_buffer(AVFilterContext *ctx, |
| @@ -624,11 +626,13 @@ int av_asrc_buffer_add_buffer(AVFilterContext *ctx, · 10 unmodified lines | ||
| 624 | 626 | buf, nb_channels, nb_samples, |
| 625 | 627 | sample_fmt, 16); |
| 626 | 628 | |
| 629 | + AV_NOWARN_DEPRECATED( | |
| 627 | 630 | return av_asrc_buffer_add_samples(ctx, |
| 628 | 631 | data, linesize, nb_samples, |
| 629 | 632 | sample_rate, |
| 630 | 633 | sample_fmt, channel_layout, planar, |
| 631 | 634 | pts, flags); |
| 635 | + ) | |
| 632 | 636 | } |
| 633 | 637 | |
| 634 | 638 | AVFilter avfilter_vsrc_buffer = { |