Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -243,6 +243,10 @@ static int try_push_frame(AVFilterContext *ctx, int nb_samples) · 242 unmodified lines | |||
| 243 | outbuf->pts = inbuf[0]->pts; | 243 | outbuf->pts = inbuf[0]->pts; |
| 244 | 244 | ||
| 245 | outbuf->nb_samples = nb_samples; | 245 | outbuf->nb_samples = nb_samples; |
| 246 | outbuf->duration = av_rescale_q(outbuf->nb_samples, | ||
| 247 | av_make_q(1, outlink->sample_rate), | ||
| 248 | outlink->time_base); | ||
| 249 | |||
| 246 | if ((ret = av_channel_layout_copy(&outbuf->ch_layout, &outlink->ch_layout)) < 0) | 250 | if ((ret = av_channel_layout_copy(&outbuf->ch_layout, &outlink->ch_layout)) < 0) |
| 247 | return ret; | 251 | return ret; |
| 248 | #if FF_API_OLD_CHANNEL_LAYOUT | 252 | #if FF_API_OLD_CHANNEL_LAYOUT |