History

asrc_abuffer: deprecate av_asrc_buffer_* functions.

Nicolas George committed 14 years ago

Commit 675e83b1 parent 6073ce72 files · +13 −0Browse files

Unified · Split

2 files
  1. libavfilter/asrc_abuffer.h +9 −0
  2. libavfilter/src_buffer.c +4 −0
libavfilter/asrc_abuffer.h+9−0
@@ -38,7 +38,10 @@ · 37 unmodified lines
3838 * @param planar flag to indicate if audio data is planar or packed
3939 * @param pts presentation timestamp of the audio buffer
4040 * @param flags unused
41+ *
42+ * @deprecated use av_buffersrc_add_ref() instead.
4143 */
44+attribute_deprecated
4245 int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc,
4346 uint8_t *data[8], int linesize[8],
4447 int nb_samples, int sample_rate,
@@ -59,7 +62,10 @@ int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc, · 14 unmodified lines
5962 * @param ch_layout channel layout of the audio data
6063 * @param pts presentation timestamp of the audio buffer
6164 * @param flags unused
65+ *
66+ * @deprecated use av_buffersrc_add_ref() instead.
6267 */
68+attribute_deprecated
6369 int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc,
6470 uint8_t *buf, int buf_size,
6571 int sample_rate,
@@ -72,7 +78,10 @@ int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc, · 6 unmodified lines
7278 * @param abuffersrc audio source buffer context
7379 * @param samplesref buffer ref to queue
7480 * @param flags unused
81+ *
82+ * @deprecated use av_buffersrc_add_ref() instead.
7583 */
84+attribute_deprecated
7685 int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *abuffersrc,
7786 AVFilterBufferRef *samplesref,
7887 int av_unused flags);
libavfilter/src_buffer.c+4−0
@@ -607,7 +607,9 @@ int av_asrc_buffer_add_samples(AVFilterContext *ctx, · 606 unmodified lines
607607 samplesref->pts = pts;
608608 samplesref->audio->sample_rate = sample_rate;
609609
610+ AV_NOWARN_DEPRECATED(
610611 return av_asrc_buffer_add_audio_buffer_ref(ctx, samplesref, 0);
612+ )
611613 }
612614
613615 int av_asrc_buffer_add_buffer(AVFilterContext *ctx,
@@ -624,11 +626,13 @@ int av_asrc_buffer_add_buffer(AVFilterContext *ctx, · 10 unmodified lines
624626 buf, nb_channels, nb_samples,
625627 sample_fmt, 16);
626628
629+ AV_NOWARN_DEPRECATED(
627630 return av_asrc_buffer_add_samples(ctx,
628631 data, linesize, nb_samples,
629632 sample_rate,
630633 sample_fmt, channel_layout, planar,
631634 pts, flags);
635+ )
632636 }
633637
634638 AVFilter avfilter_vsrc_buffer = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t