For anything like the problem you describe, the best thing to do is to open a bug report and give them a sample input file, output file and command line
It is also important to give them output of these commands:
ffmpeg -v
ffmpeg -buildconf
This particular thread was about performance but obviously correct functionality is even more important than speed.