[FFmpeg-devel] [PATCH] fix swr_convert buffering of packed audio

Andrew Wason rectalogic at rectalogic.com
Fri Apr 20 23:06:25 CEST 2012


swr_convert is not properly buffering packed input audio when the
output is not large enough, and when resampling is not actually needed
(same samplerate and no SWR_FLAG_RESAMPLE).

buf_set() is only handling the first channel and leaving the others as-is.

Sample program to reproduce the problem is here https://gist.github.com/2431768

Patch attached.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swresample.diff
Type: application/octet-stream
Size: 726 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120420/d7967793/attachment.obj>


More information about the ffmpeg-devel mailing list