ffmpeg/fftools
Marton Balint 41569bbc66 ffmpeg: always use single threaded decoding for attached pictures
Since af1761f7b5 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: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
2017-10-08 22:32:13 +02:00
..
cmdutils_opencl.c
cmdutils.c
cmdutils.h
ffmpeg_cuvid.c
ffmpeg_filter.c
ffmpeg_hw.c
ffmpeg_opt.c
ffmpeg_qsv.c
ffmpeg_videotoolbox.c
ffmpeg.c ffmpeg: always use single threaded decoding for attached pictures 2017-10-08 22:32:13 +02:00
ffmpeg.h
ffplay.c
ffprobe.c
ffserver_config.c
ffserver_config.h
ffserver.c
Makefile