diff --git a/libavfilter/af_resample.c b/libavfilter/af_resample.c index fbe61056e36e526ed5b659a01bd74cb97fe318f4..b125d25d20b0342d06c46c86ef0a0ad4b44cff47 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); } diff --git a/tests/fate/libavresample.mak b/tests/fate/libavresample.mak index 4a48c9c042659ff3483630550e227404b19ba30c..65a0e1e93dc310e454c7db11ed9f3a88cb69fcee 100644 --- a/tests/fate/libavresample.mak +++ b/tests/fate/libavresample.mak @@ -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_UNIT = $(5) 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 $(call CROSS_TEST,$(SAMPLERATES),RESAMPLE,s16p,s16le,s16)