• Marton Balint's avatar
    ffmpeg: always use single threaded decoding for attached pictures · 41569bbc
    Marton Balint authored
    Since af1761f7 ffmpeg waits for a frame in each
    stream before writing the output header. If we are using threaded decoding for
    attached pictures, we have to read till EOF to be able to finally flush the
    decoder and output the decoded frame. This essentially makes ffmpeg buffer all
    non-attached picture packets, which will cause a "Too many packets buffered for
    output stream" eventually.
    
    By forcing single threaded decoding, we get a frame from a single packet as
    well and we can avoid the error.
    
    Fixes part of ticket #6375:
    ffmpeg -i 46564100.mp3 -acodec libmp3lame -ab 128k -ac 2 out.mp3
    Reviewed-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    41569bbc
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...