Commit c060d046 authored by Luca Barbato's avatar Luca Barbato

af_resample: Set the number of samples in the last frame

Otherwise trailing zeroes would appear.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 6ec688e1
...@@ -202,6 +202,7 @@ static int request_frame(AVFilterLink *outlink) ...@@ -202,6 +202,7 @@ static int request_frame(AVFilterLink *outlink)
return (ret == 0) ? AVERROR_EOF : ret; return (ret == 0) ? AVERROR_EOF : ret;
} }
frame->nb_samples = ret;
frame->pts = s->next_pts; frame->pts = s->next_pts;
return ff_filter_frame(outlink, frame); return ff_filter_frame(outlink, frame);
} }
......
...@@ -38,7 +38,7 @@ fate-lavr-resample-$(3)-$(1)-$(2): CMD = avconv -i $(TARGET_PATH)/tests/data/asy ...@@ -38,7 +38,7 @@ fate-lavr-resample-$(3)-$(1)-$(2): CMD = avconv -i $(TARGET_PATH)/tests/data/asy
fate-lavr-resample-$(3)-$(1)-$(2): CMP = oneoff fate-lavr-resample-$(3)-$(1)-$(2): CMP = oneoff
fate-lavr-resample-$(3)-$(1)-$(2): CMP_UNIT = $(5) fate-lavr-resample-$(3)-$(1)-$(2): CMP_UNIT = $(5)
fate-lavr-resample-$(3)-$(1)-$(2): FUZZ = 6 fate-lavr-resample-$(3)-$(1)-$(2): FUZZ = 6
fate-lavr-resample-$(3)-$(1)-$(2): REF = $(SAMPLES)/lavr/lavr-resample-$(3)-$(1)-$(2)-v2 fate-lavr-resample-$(3)-$(1)-$(2): REF = $(SAMPLES)/lavr/lavr-resample-$(3)-$(1)-$(2)-v3
endef endef
$(call CROSS_TEST,$(SAMPLERATES),RESAMPLE,s16p,s16le,s16) $(call CROSS_TEST,$(SAMPLERATES),RESAMPLE,s16p,s16le,s16)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment