Opened 7 years ago

#6739 new defect

aresample filter compensation bug

Reported by: dudoser Owned by:
Priority: normal Component: swresample
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

aresample filter configured to soft compensate will reinitialize itself on a first attempt to compensate unless it was configured to forced resampling

swresample.c -> swr_set_compensation ->

    if (!s->resample) {
        s->flags |= SWR_FLAG_RESAMPLE;
        ret = swr_init(s);
        if (ret < 0)
            return ret;
    }

filter string example:

"aresample=first_pts=0:min_comp=0.064:max_soft_comp=0.95:min_hard_comp=0.192"

flags=res will fix it

unfortunately I cannot provide a file since I generate my input procedurally

this might be intended behaviour, but I didn't find any mention of this in documentation and this rather odd since this filter produces file with longer duration if used without proper flags

Change History (0)

Note: See TracTickets for help on using tickets.