Skip to content
Snippets Groups Projects
Commit 41569bbc authored by Marton Balint's avatar Marton Balint
Browse files

ffmpeg: always use single threaded decoding for attached pictures


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: default avatarHendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: default avatarMarton Balint <cus@passwd.hu>
parent 41d6d627
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment