modify ffmpeg to adapt the multiple lookahead thread synchronization change