lavc: set sw_pix_fmt for hwaccel encoding