Opened 5 months 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


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:


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.