summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-08-02 01:58:07 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-06-20 12:18:01 +0300
commitc060d046aa2f89c0e601a2dcfbce53f0e36cf498 (patch)
treefa23c0a69429cf34874b715d87329215299f0952 /libavfilter
parent6ec688e1bc76dd93151cbca1c340162ae4b10d77 (diff)
af_resample: Set the number of samples in the last frame
Otherwise trailing zeroes would appear. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_resample.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_resample.c b/libavfilter/af_resample.c
index fbe61056e3..b125d25d20 100644
--- a/libavfilter/af_resample.c
+++ b/libavfilter/af_resample.c
@@ -202,6 +202,7 @@ static int request_frame(AVFilterLink *outlink)
return (ret == 0) ? AVERROR_EOF : ret;
}
+ frame->nb_samples = ret;
frame->pts = s->next_pts;
return ff_filter_frame(outlink, frame);
}