Test memory leak in ffmpeg with many threads