avcodec/ylc: add frame threading support