lavc: copy AVCodecContext for threads

Signed-off-by: Paul B Mahol <onemda@gmail.com>