Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -379,6 +379,9 @@ static int output_frame(AVFilterLink *outlink) · 378 unmodified lines | |||
| 379 | av_frame_free(&in_buf); | 379 | av_frame_free(&in_buf); |
| 380 | 380 | ||
| 381 | out_buf->pts = s->next_pts; | 381 | out_buf->pts = s->next_pts; |
| 382 | out_buf->duration = av_rescale_q(out_buf->nb_samples, av_make_q(1, outlink->sample_rate), | ||
| 383 | outlink->time_base); | ||
| 384 | |||
| 382 | if (s->next_pts != AV_NOPTS_VALUE) | 385 | if (s->next_pts != AV_NOPTS_VALUE) |
| 383 | s->next_pts += nb_samples; | 386 | s->next_pts += nb_samples; |
| 384 | 387 | ||