consumer_avformat.c, producer_avformat.c: add FFmpeg multi-thread support via