summaryrefslogtreecommitdiff
path: root/libswresample/resample.h
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2016-06-17 05:34:30 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2016-06-17 16:02:49 +0700
commit7f1b503ec218a6194f6b2008d8e4d0110301fef4 (patch)
treeec53d58c6ef155e4f91486fe1b0f0d0c5b003d07 /libswresample/resample.h
parentee575acb8c8ca7a688dc22c54ed667201869f909 (diff)
downloadffmpeg-7f1b503ec218a6194f6b2008d8e4d0110301fef4.tar.gz
swresample/resample: do not increase phase_count on exact_rational
high phase_count is only useful when dst_incr_mod is non zero in other word, it is only useful on soft compensation on init, it will build filter with low phase_count but when soft compensation is enabled, rebuild filter with high phase_count this approach saves lots of memory Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libswresample/resample.h')
-rw-r--r--libswresample/resample.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libswresample/resample.h b/libswresample/resample.h
index 53788c484f..b0e63ccfe3 100644
--- a/libswresample/resample.h
+++ b/libswresample/resample.h
@@ -51,6 +51,7 @@ typedef struct ResampleContext {
enum AVSampleFormat format;
int felem_size;
int filter_shift;
+ int phase_count_compensation; /* desired phase_count when compensation is enabled */
struct {
void (*resample_one)(void *dst, const void *src,