[FFmpeg-trac] #6739(swresample:new): aresample filter compensation bug

FFmpeg trac at avcodec.org
Mon Oct 16 22:39:20 EEST 2017

#6739: aresample filter compensation bug
             Reporter:  dudoser     |                     Type:  defect
               Status:  new         |                 Priority:  normal
            Component:  swresample  |                  Version:  git-master
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
 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

 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

 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

Ticket URL: <https://trac.ffmpeg.org/ticket/6739>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list