Skip to content
Snippets Groups Projects
Commit dfa988ee authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

libavfilter: src_buffer: add time_base for audio

parent aa69db3a
No related branches found
No related tags found
No related merge requests found
...@@ -430,6 +430,7 @@ static av_cold int init_audio(AVFilterContext *ctx, const char *args0, void *opa ...@@ -430,6 +430,7 @@ static av_cold int init_audio(AVFilterContext *ctx, const char *args0, void *opa
if (*args) \ if (*args) \
arg = av_strtok(NULL, ":", &ptr) arg = av_strtok(NULL, ":", &ptr)
ADD_FORMAT(time_base);
ADD_FORMAT(sample_rate); ADD_FORMAT(sample_rate);
ADD_FORMAT(sample_format); ADD_FORMAT(sample_format);
ADD_FORMAT(channel_layout); ADD_FORMAT(channel_layout);
...@@ -516,6 +517,7 @@ static int config_output_audio(AVFilterLink *outlink) ...@@ -516,6 +517,7 @@ static int config_output_audio(AVFilterLink *outlink)
{ {
BufferSourceContext *abuffer = outlink->src->priv; BufferSourceContext *abuffer = outlink->src->priv;
outlink->sample_rate = abuffer->sample_rate; outlink->sample_rate = abuffer->sample_rate;
outlink->time_base = abuffer->time_base;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment